@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

:root {
  --nav-h: 4.25rem;
  --safe-top: env(safe-area-inset-top, 0px);
}

:root,
[data-theme="light"] {
  --bg: #f6f4ef;
  --bg-2: #ffffff;
  --ink: #161816;
  --muted: #5c6358;
  --mark: #6f7a68;
  --mark-soft: #8b9684;
  --line: rgba(22, 24, 22, 0.1);
  --line-strong: rgba(22, 24, 22, 0.16);
  --danger: #b35448;
  --ok: #2f7a4a;
  --shadow: 0 18px 50px rgba(22, 24, 22, 0.1);
  --nav-bg: rgba(246, 244, 239, 0.92);
  --panel: #ffffff;
  --input-bg: #fff;
  --fab: #161816;
  --fab-ink: #f6f4ef;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #111311;
  --bg-2: #1a1c1a;
  --ink: #eef0ea;
  --muted: #b0b7aa;
  --mark: #a3ad9c;
  --mark-soft: #c5cebf;
  --line: rgba(238, 240, 234, 0.12);
  --line-strong: rgba(238, 240, 234, 0.2);
  --danger: #e08b80;
  --ok: #8fbf9a;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  --nav-bg: rgba(17, 19, 17, 0.92);
  --panel: #1a1c1a;
  --input-bg: #141614;
  --fab: #eef0ea;
  --fab-ink: #111311;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: Inter, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

#vanish-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#vanish-dust,
.orb {
  pointer-events: none;
}

#vanish-dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.5;
}

.orb.o1 {
  width: 28rem;
  height: 28rem;
  top: -8rem;
  right: -7rem;
  background: #c5cebd;
  animation: orb-drift 26s ease-in-out infinite;
}

.orb.o2 {
  width: 22rem;
  height: 22rem;
  bottom: 12%;
  left: -8rem;
  background: #e4dccb;
  animation: orb-drift 32s ease-in-out infinite reverse;
}

.orb.o3 {
  width: 16rem;
  height: 16rem;
  top: 42%;
  right: 18%;
  background: #b7c2ae;
  opacity: 0.28;
  animation: orb-drift 20s ease-in-out infinite 1.4s;
}

@keyframes orb-drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-36px, 28px) scale(1.06);
  }
}

[data-theme="dark"] .orb.o1 {
  background: #2a3128;
}

[data-theme="dark"] .orb.o2 {
  background: #3a3428;
}

[data-theme="dark"] .orb.o3 {
  background: #2f382d;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.app {
  position: relative;
  z-index: 1;
  min-height: -webkit-fill-available;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--nav-h) + var(--safe-top));
}

.wrap {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

/* Nav */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: calc(var(--nav-h) + var(--safe-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: var(--safe-top) 1rem 0;
  border-bottom: 1px solid var(--line);
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  min-width: 0;
}

.brand .mark {
  width: 2rem;
  height: 1.55rem;
  color: var(--ink);
  flex: 0 0 auto;
}

.brand .name {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-right,
#auth-slot {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.send-icon {
  display: grid;
}

.icon-btn,
.lang-btn,
.menu-btn,
.theme-btn {
  width: 2.4rem;
  height: 2.4rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}

.icon-btn:hover,
.lang-btn:hover,
.menu-btn:hover,
.theme-btn:hover,
.lang-switch.open .lang-btn {
  border-color: var(--mark);
}

.lang-btn {
  width: 2.7rem;
  height: 2.7rem;
  background: #fff;
  border-color: #cfcfcf;
}

.lang-switch {
  position: relative;
}

.flag-svg {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: block;
  object-fit: cover;
  background: #fff;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  min-width: 12.75rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--bg-2);
  box-shadow: var(--shadow);
  display: none;
  z-index: 80;
}

.lang-switch.open .lang-menu {
  display: grid;
}

.lang-menu button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.6rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
}

.lang-menu button:hover,
.lang-menu button.active {
  background: rgba(111, 122, 104, 0.1);
}

.lang-menu .meta {
  display: flex;
  flex-direction: column;
}

.lang-menu .meta strong {
  font-size: 0.88rem;
}

.lang-menu .meta span {
  font-size: 0.72rem;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.6rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
}

.btn-solid {
  background: var(--ink);
  color: var(--bg);
}

.btn-solid:hover {
  opacity: 0.9;
}

.btn-line {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-line:hover {
  border-color: var(--ink);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Drawer from the right */
.drawer-bg {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 50;
}

.drawer-bg.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(20rem, 88vw);
  background: var(--bg-2);
  border-left: 1px solid var(--line);
  padding: 1rem 1.1rem;
  transform: translateX(105%);
  transition: transform 0.24s ease;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer nav {
  display: flex;
  flex-direction: column;
}

.drawer nav a {
  padding: 0.8rem 0.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.drawer nav a:hover,
.drawer nav a.active {
  color: var(--ink);
}

.drawer-note {
  margin-top: auto;
  color: var(--muted);
  font-size: 0.84rem;
}

.main {
  flex: 1;
  padding-bottom: 5rem;
}

.main.page-enter {
  animation: page-in 0.28s ease;
}

@keyframes page-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.seal-load {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: rgba(246, 244, 239, 0.78);
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .seal-load {
  background: rgba(17, 19, 17, 0.78);
}

.seal-load[hidden] {
  display: none;
}

.seal-load-card {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
  padding: 1.15rem 1.3rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.seal-load-ring {
  width: 2.6rem;
  height: 2.6rem;
  color: var(--ink);
  animation: seal-spin 1.15s linear infinite;
}

.seal-load-ring svg {
  display: block;
  width: 100%;
  height: 100%;
}

.seal-load-label {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: var(--muted);
}

@keyframes seal-spin {
  to {
    transform: rotate(360deg);
  }
}

body.is-loading {
  cursor: progress;
}

/* Hero */
.hero {
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: 1rem;
  max-width: 36rem;
}

.hero-art {
  color: var(--ink);
  max-width: 22rem;
  margin: 0 auto;
}

.process {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.28rem;
}

.process li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.32rem;
  min-width: 3.6rem;
}

.process-dot {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  display: grid;
  place-items: center;
  color: var(--ink);
  font-weight: 400;
}

.process .art-step {
  width: 1.12rem;
  height: 1.12rem;
  margin: 0;
  display: block;
  color: inherit;
}

.process-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mark);
}

.process-rail {
  flex: 1;
  flex-direction: row;
  min-width: 1.8rem;
  max-width: 3.4rem;
  height: 8px;
  background: transparent;
  position: relative;
  overflow: visible;
  align-self: flex-start;
  margin-top: 0.7rem;
  margin-bottom: 1.2rem;
}

.process-rail::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 3px;
  height: 2px;
  background: var(--line-strong);
  border-radius: 99px;
}

.process-bead {
  position: absolute;
  top: 0;
  left: -8px;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--ink);
  animation: process-run 2.4s ease-in-out infinite;
}

.hero-copy .process-dot {
  width: 2.4rem;
  height: 2.4rem;
}

.hero-copy .process .art-step {
  width: 1.2rem;
  height: 1.2rem;
}

.process-live li.on .process-dot,
.process-live li.done .process-dot {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.process-live li.on .art-step,
.process-live li.done .art-step {
  color: inherit;
}

.process-live li.done .process-dot {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}

.process-live li.on .process-label {
  color: var(--ink);
}

.process-live li.done .process-label {
  color: var(--ok);
}

.qs-modal .process {
  justify-content: center;
  margin: 0 auto 1rem;
  max-width: 18rem;
}

.attach {
  display: grid;
  gap: 0.4rem;
}

.attach-bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.attach-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  min-height: 1.65rem;
  padding: 0 0.55rem;
  border: 1px dashed var(--line-strong);
  border-radius: 7px;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  color: var(--muted);
}

.attach-btn:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.attach-btn input {
  display: none;
}

.attach-meta {
  color: var(--muted);
  font-size: 0.75rem;
}

.attach-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.attach-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  font-size: 0.82rem;
}

.attach-list em {
  color: var(--muted);
  font-style: normal;
}

.attach-list button {
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--muted);
}

.file-box h3 {
  margin: 1rem 0 0.6rem;
  font-size: 0.92rem;
}

.file-card {
  display: grid;
  gap: 0.55rem;
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  margin-bottom: 0.6rem;
  text-align: left;
}

.file-card img,
.file-card video {
  width: 100%;
  max-height: 16rem;
  object-fit: contain;
  border-radius: 8px;
  background: #111;
}

.file-card strong,
.file-card span {
  display: block;
}

.file-card span {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0.15rem 0 0.55rem;
}

.app-soon .eyebrow {
  margin: 0;
  color: var(--mark);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

@keyframes process-run {
  0% {
    left: -8px;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: calc(100% + 2px);
    opacity: 0;
  }
}

.art-hero {
  width: 100%;
  height: auto;
}

.art-step {
  width: 2.8rem;
  height: 2.8rem;
  color: var(--ink);
  margin-bottom: 0.75rem;
}

.flow article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.2rem;
}

[data-fade] {
  will-change: transform, opacity;
}

@media (prefers-reduced-motion: reduce) {
  [data-fade] {
    opacity: 1;
  }

  .orb {
    display: none;
  }

  .process-bead,
  .orb.o1,
  .orb.o2,
  .orb.o3,
  .seal-load-ring,
  .hero-copy,
  .hero-art,
  .main.page-enter {
    animation: none;
  }
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-copy {
  animation: hero-in 0.62s ease both;
}

.hero-art {
  animation: hero-in 0.82s ease both;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.hero .lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.hero-note {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.flow-bridge {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.flow-bridge .eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mark);
}

.flow-bridge .intro {
  margin: 0;
  max-width: 26rem;
}

.flow-bridge-line {
  width: 1px;
  height: 1.6rem;
  background: var(--line-strong);
  margin-bottom: 0.2rem;
}

.hero-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-logo-wrap {
  display: none;
  justify-content: center;
}

.hero-logo-wrap img {
  width: min(280px, 70%);
  height: auto;
}

[data-theme="dark"] .hero-logo-wrap img,
[data-theme="dark"] .page-head img.mark,
[data-theme="dark"] .footer-brand img,
[data-theme="dark"] .reveal .seal {
  filter: invert(1) hue-rotate(180deg);
}

.section {
  padding: 3.25rem 0;
  border-bottom: 1px solid var(--line);
}

.section h2 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
}

.section .intro {
  margin: 0.7rem 0 0;
  color: var(--muted);
  max-width: 38rem;
}

.paths,
.uses,
.flow,
.price-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.path-card,
.price-item,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.3rem;
}

.path-card h3,
.uses h3,
.flow h3 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
}

.path-card p,
.uses p,
.flow p {
  margin: 0;
  color: var(--muted);
}

.path-card .btn {
  margin-top: 0.9rem;
}

.uses article {
  padding: 0;
}

.cta-row {
  display: grid;
  gap: 1rem;
}

.cta-row p {
  margin: 0.6rem 0 0;
  color: var(--muted);
}

.cta-row .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.page-head {
  padding: 2.4rem 0 1.2rem;
  display: grid;
  gap: 0.55rem;
}

.page-head img.mark {
  width: min(10rem, 46vw);
  height: auto;
}

.page-head .eyebrow {
  margin: 0;
  color: var(--mark);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.page-head p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.panel {
  margin-bottom: 3rem;
}

.form {
  display: grid;
  gap: 1.1rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.86rem;
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: var(--input-bg);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  outline: none;
}

.field textarea {
  min-height: 9.5rem;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--ink);
}

.hint {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.grid-2 {
  display: grid;
  gap: 1rem;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  overflow: hidden;
  background: var(--bg);
}

.ttl-box {
  display: grid;
  gap: 0.4rem;
}

.ttl-box > label {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--ink);
}

.ttl-custom {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ttl-custom span {
  color: var(--muted);
  font-size: 0.75rem;
}

.ttl-custom input[type="number"] {
  width: 2.8rem;
  border: 1px solid var(--line);
  background: var(--input-bg);
  border-radius: 6px;
  padding: 0.28rem 0.4rem;
  font-size: 0.78rem;
}

.ttl-custom select {
  border: 1px solid var(--line);
  background: var(--input-bg);
  border-radius: 6px;
  padding: 0.28rem 0.35rem;
  font-size: 0.78rem;
  color: var(--ink);
}

.choice {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  min-height: 2rem;
  padding: 0;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.choice:last-child {
  border-right: 0;
}

.choice:hover {
  color: var(--ink);
}

.choice.on {
  color: var(--bg);
  background: var(--ink);
}

.compose-page {
  padding-bottom: 2.5rem;
}

.compose-head {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.compose-head .process {
  justify-content: center;
  margin: 0 auto 1.1rem;
}

.compose-head p {
  margin-left: auto;
  margin-right: auto;
}

.compose-who {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.85rem auto 0 !important;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.8rem;
}

.compose-who a {
  color: var(--ink);
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.compose-who-dot {
  width: 0.48rem;
  height: 0.48rem;
  border-radius: 99px;
  background: var(--mark-soft);
}

.compose-who-dot.on {
  background: var(--ok);
}

.compose-card {
  max-width: 36rem;
  margin: 0 auto 3rem;
  padding: 1.35rem 1.3rem 1.4rem;
}

.auth-page {
  padding: 1.1rem 0 2.4rem;
}

.auth-card {
  max-width: 26.5rem;
  margin: 0 auto;
  padding: 1.15rem 1.15rem 1.05rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-align: center;
}

.auth-card h1 {
  margin: 0.85rem 0 0.25rem;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.auth-lede {
  margin: 0 auto 0.9rem;
  color: var(--muted);
  font-size: 0.86rem;
  max-width: 22rem;
  text-align: center;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 auto;
  max-width: 22rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
}

.auth-card .form,
.auth-grid,
.auth-card .field {
  text-align: left;
}

.auth-foot {
  justify-items: center;
}

.auth-tabs[hidden] {
  display: none;
}

.auth-tabs button {
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  min-height: 2.15rem;
  padding: 0 0.7rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--muted);
  cursor: pointer;
}

.auth-tabs button:last-child {
  border-right: 0;
}

.auth-tabs button.on {
  background: var(--ink);
  color: var(--bg);
}

.auth-card .form {
  gap: 0.75rem;
}

.auth-grid {
  display: grid;
  gap: 0.7rem;
}

.auth-card .field[hidden] {
  display: none !important;
}

.auth-card .field label {
  margin-bottom: 0.28rem;
  font-size: 0.78rem;
}

.auth-card .field input,
.auth-card .field select {
  padding: 0.48rem 0.7rem;
  min-height: 2.3rem;
  border-radius: 8px;
}

.handle-row {
  display: grid;
  grid-template-columns: 7.4rem 1fr;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: var(--input-bg);
}

.handle-row select,
.handle-row input {
  width: 100%;
  border: 0 !important;
  border-radius: 0 !important;
  min-height: 2.3rem;
  background: transparent;
  padding: 0.48rem 0.7rem;
}

.handle-row select {
  border-right: 1px solid var(--line) !important;
  font-size: 0.8rem;
  font-weight: 650;
  background: var(--bg);
}

.turnstile-slot {
  display: flex;
  justify-content: center;
  width: 100%;
}

.auth-foot {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
}

.auth-foot .btn {
  width: 100%;
}

.auth-switch {
  margin: 0;
  text-align: center;
}

.auth-link {
  border: 0;
  background: none;
  padding: 0.15rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-link:hover {
  color: var(--ink);
}

.turnstile-slot,
.turnstile-quiet {
  display: flex;
  justify-content: center;
  min-height: 0;
}

.turnstile-slot {
  min-height: 65px;
}

.share-ready-bg {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(22, 24, 22, 0.38);
}

.share-ready {
  position: fixed;
  z-index: 91;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -46%) scale(0.96);
  width: min(26.5rem, calc(100vw - 1.4rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.45rem 1.25rem 1.3rem;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.share-ready.in {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.share-ready-mark {
  width: 3.4rem;
  height: 3.4rem;
  margin: 0 auto 0.75rem;
  color: var(--ok);
}

.share-ready-check {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: check-draw 0.55s ease 0.12s forwards;
}

@keyframes check-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.share-ready h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.share-ready p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.share-ready-done {
  width: 100%;
  margin-top: 1rem;
}

body[data-scene="compose"] .orb.o2,
body[data-scene="account"] .orb.o1 {
  opacity: 0.35;
}

.result {
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.8rem;
}

.result code:not(.share-url),
.qs-link,
.message-out {
  display: block;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  word-break: break-all;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.82rem;
}

.alert {
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.alert.err {
  color: var(--danger);
  border-color: rgba(179, 84, 72, 0.35);
}

.alert.ok {
  color: var(--ok);
  border-color: rgba(47, 122, 74, 0.3);
}

.reveal {
  max-width: 34rem;
  margin: 0 auto 3rem;
  text-align: center;
}

.reveal .seal {
  width: 6rem;
  height: auto;
  margin: 0 auto 1rem;
}

.message-out {
  text-align: left;
  white-space: pre-wrap;
  margin-top: 1rem;
}

.auth-tabs-legacy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.auth-panel {
  max-width: 28rem;
}

.reasons {
  display: grid;
  gap: 0.8rem;
}

.reasons .reason {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.reasons .reason h3 {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mark);
}

.reasons .reason p {
  margin: 0;
}

.share-panel {
  display: grid;
  gap: 0.85rem;
  justify-items: center;
  text-align: center;
}

.share-linkbar {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.35rem 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}

.share-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.78rem;
  color: var(--muted);
  background: none;
}

.share-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border: 0;
  border-radius: 9px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}

.share-copy.ok {
  background: var(--ok);
  color: #fff;
}

.share-copy-ico,
.share-copy svg {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
}

.share-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mark);
}

.share-apps {
  display: grid;
  grid-template-columns: repeat(3, 4.6rem);
  justify-content: center;
  gap: 0.75rem 0.7rem;
  width: 100%;
}

.share-app {
  width: 4.6rem;
  display: grid;
  justify-items: center;
  gap: 0.35rem;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
}

.share-app:hover span:last-child {
  color: var(--ink);
}

.share-logo {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(22, 24, 22, 0.08);
}

.share-logo svg {
  width: 2.7rem;
  height: 2.7rem;
  display: block;
}

.share-logo.instagram {
  background: linear-gradient(135deg, #f58529, #dd2a7b 52%, #8134af);
}

.share-logo.instagram svg {
  width: 1.7rem;
  height: 1.7rem;
}

.share-logo.native {
  background: var(--ink);
  color: var(--bg);
}

.share-logo.native svg {
  width: 1.25rem;
  height: 1.25rem;
}

.text-link,
.qs-ready-foot a,
.qs-ready-foot button {
  border: 0;
  background: none;
  padding: 0;
  color: var(--mark);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.text-link:hover,
.qs-ready-foot a:hover,
.qs-ready-foot button:hover {
  color: var(--ink);
}

.price-item h3 {
  margin: 0;
  color: var(--mark);
}

.price-item .amount {
  margin: 0.5rem 0 0.9rem;
  font-size: 1.7rem;
  font-weight: 700;
}

.price-item .amount span {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.price-item ul,
.split-list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}

.price-item.featured {
  outline: 1px solid var(--ink);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2.4rem 1rem 1.3rem;
}

.footer-grid {
  width: min(1080px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.footer-brand img {
  width: 8.5rem;
  height: auto;
  margin-bottom: 0.7rem;
}

.footer p,
.footer a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer a {
  display: block;
  padding: 0.2rem 0;
}

.footer a:hover {
  color: var(--ink);
}

.footer h4 {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mark);
}

.footer-bottom {
  width: min(1080px, 100%);
  margin: 1.6rem auto 0;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

/* Help FAB */
.help-fab {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  width: 3rem;
  height: 3rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(22, 24, 22, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.help-fab:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(22, 24, 22, 0.16);
}

[data-theme="dark"] .help-fab {
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.help-host .qs-backdrop {
  z-index: 71;
}

.help-host {
  position: relative;
  z-index: 70;
}

.help-modal {
  position: fixed;
  z-index: 72;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(34rem, calc(100vw - 1.5rem));
  max-height: min(88vh, 680px);
  overflow: auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.2rem 1.2rem 1.1rem;
}

.help-modal h2 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
}

.help-modal h3 {
  margin: 1.1rem 0 0.35rem;
  font-size: 0.95rem;
}

.help-modal p,
.help-modal li {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.help-modal ol,
.help-modal ul {
  margin: 0.3rem 0 0;
  padding-left: 1.15rem;
}

.help-close {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
}

body.tour-on {
  overflow: hidden;
}

body.tour-on .help-fab {
  opacity: 0;
  pointer-events: none;
}

body.tour-on .qs-backdrop {
  background: transparent;
}

#tour-host {
  position: relative;
  z-index: 200;
}

.tour-block {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: transparent;
}

.tour-spot {
  position: fixed;
  z-index: 201;
  pointer-events: none;
  background: transparent;
  box-shadow: 0 0 0 9999px rgba(12, 14, 12, 0.62);
  transition:
    left 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    top 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    width 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    height 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.tour-ring {
  position: absolute;
  inset: -7px;
  border: 2px solid var(--mark);
  border-radius: inherit;
  animation: tour-ring 1.5s ease-out infinite;
}

@keyframes tour-ring {
  0% {
    transform: scale(1);
    opacity: 0.95;
  }
  100% {
    transform: scale(1.08);
    opacity: 0;
  }
}

.tour-card {
  position: fixed;
  z-index: 202;
  width: min(22.5rem, calc(100vw - 1.4rem));
  background: var(--bg-2);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1rem 1rem 0.9rem;
  animation: tour-card-in 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.tour-card.is-center {
  transform: translate(-50%, -50%);
}

.tour-card.is-dock {
  transform: none;
  animation: tour-card-in 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

body.tour-on .qs-modal {
  top: 7vh;
  left: 0.75rem;
  right: 0.75rem;
  bottom: auto;
  transform: none;
  width: auto;
  max-height: calc(100vh - 15.5rem);
}

body.tour-on .qs-foot,
body.tour-on .qs-actions {
  display: none;
}

@keyframes tour-card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.tour-card.is-center {
  animation: tour-card-center 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tour-card-center {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 14px));
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.tour-progress {
  height: 3px;
  margin: -1rem -1rem 0.85rem;
  background: rgba(111, 122, 104, 0.16);
  border-radius: 16px 16px 0 0;
  overflow: hidden;
}

.tour-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--mark);
  transition: width 0.08s linear;
}

.tour-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.tour-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mark);
}

.tour-skip,
.tour-text {
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.tour-skip:hover,
.tour-text:hover {
  color: var(--ink);
}

.tour-text:disabled {
  opacity: 0.35;
  cursor: default;
}

.tour-card h2 {
  margin: 0.45rem 0 0.35rem;
  font-size: 1.2rem;
  line-height: 1.25;
}

.tour-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.tour-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-top: 1rem;
}

.tour-dots {
  display: flex;
  gap: 0.32rem;
  flex: 1;
  justify-content: center;
}

.tour-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: var(--line-strong);
  cursor: pointer;
}

.tour-dot.done {
  background: rgba(111, 122, 104, 0.45);
}

.tour-dot.on {
  width: 16px;
  background: var(--ink);
}

.tour-nav .btn {
  min-height: 2.2rem;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
}

#qs-message.tour-typing {
  caret-color: var(--mark);
}

/* Quick send */
body.qs-lock {
  overflow: hidden;
}

.qs-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 80;
}

.qs-modal {
  position: fixed;
  z-index: 81;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(34rem, calc(100vw - 1.5rem));
  max-height: min(92vh, 720px);
  overflow: auto;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.15rem;
}

.qs-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.qs-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.qs-brand .mark {
  width: 1.8rem;
  height: 1.4rem;
  color: var(--ink);
}

.qs-eyebrow {
  margin: 0;
  color: var(--mark);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.qs-brand h2 {
  margin: 0.1rem 0 0;
  font-size: 1.15rem;
}

.qs-steps {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.qs-steps span {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

.qs-steps span.on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.qs-steps i {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.qs-step h3 {
  margin: 0 0 0.8rem;
}

.qs-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
  margin-top: 0.4rem;
}

.qs-modal.is-ready .qs-steps,
.qs-modal.is-ready .qs-foot,
.qs-modal.is-ready .qs-eyebrow {
  display: none;
}

.qs-modal.is-ready .qs-head {
  margin-bottom: 0.45rem;
}

.qs-modal.is-ready .qs-brand h2 {
  font-size: 1rem;
}

.qs-ready {
  text-align: center;
}

.qs-ready h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
}

.qs-check {
  width: 2.8rem;
  height: 2.8rem;
  margin: 0 auto 0.8rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(47, 122, 74, 0.12);
  color: var(--ok);
  font-weight: 700;
}

.qs-ready-copy {
  color: var(--muted);
  margin: 0 0 1rem;
  font-size: 0.92rem;
}

.qs-ready .share-panel {
  margin: 0 auto 0.2rem;
}

.qs-ready-foot {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 1rem;
}

.qs-ready .qs-actions {
  justify-content: center;
}

.qs-done {
  width: 100%;
  margin-top: 0.7rem;
}

.result {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0.85rem;
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}

.result strong {
  font-size: 1.05rem;
}

.qs-foot {
  margin: 1rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-size: 0.84rem;
  color: var(--muted);
}

.qs-foot a {
  color: var(--mark);
  text-decoration: underline;
}

@media (min-width: 860px) {
  .nav {
    padding: var(--safe-top) 1.5rem 0;
  }

  .auth-page {
    display: grid;
    justify-items: center;
    padding-top: 1.6rem;
  }

  .auth-card {
    max-width: 28rem;
    width: 100%;
    padding: 1.35rem 1.5rem 1.2rem;
  }

  .auth-card h1 {
    font-size: 1.45rem;
  }

  .auth-card h1,
  .auth-lede {
    text-align: center;
  }

  .auth-tabs {
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
  }

  .auth-foot {
    justify-content: center;
  }

  .auth-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem 1rem;
  }

  .handle-field {
    grid-column: 1 / -1;
  }

  .auth-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }

  .auth-foot .btn {
    width: auto;
    min-width: 11.5rem;
  }

  .nav-links {
    display: flex;
  }

  .menu-btn {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
    min-height: 22rem;
  }

  .dash-hero {
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 1.2rem;
  }

  .dash-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .dash-apk {
    grid-template-columns: 11rem 1fr;
    align-items: center;
    gap: 1.4rem;
    padding: 1.25rem 1.4rem 1.3rem;
  }

  .dash-apk-visual {
    min-height: 11.5rem;
  }

  .send-icon {
    display: none;
  }

  .hero-logo-wrap {
    display: flex;
  }

  .paths,
  .uses,
  .flow,
  .price-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .app-grid {
    grid-template-columns: 1fr 1fr;
  }

  .reasons {
    grid-template-columns: 1fr 1fr;
  }

  .paths {
    grid-template-columns: 1fr 1fr;
  }

  .cta-row {
    grid-template-columns: 1.4fr auto;
    align-items: end;
  }

  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

@media (max-width: 859px) {
  .hide-sm {
    display: none !important;
  }
}

@media (max-width: 720px) {
  .dash-pay {
    grid-template-columns: auto 1fr auto;
  }

  .dash-pay .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }

  :root {
    --nav-h: 3.55rem;
  }

  .nav {
    height: calc(var(--nav-h) + var(--safe-top));
    padding: var(--safe-top) 0.75rem 0;
    gap: 0.4rem;
  }

  .brand .mark {
    width: 1.55rem;
    height: 1.2rem;
  }

  .brand .name {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
  }

  .lang-btn,
  .theme-btn,
  .menu-btn,
  .send-icon {
    width: 2.2rem;
    height: 2.2rem;
  }

  .hero {
    padding: 1.5rem 0 2.1rem;
    text-align: center;
    border-bottom: 0;
  }

  .hero .process {
    display: none;
  }

  .hero-copy {
    margin: 0 auto;
    gap: 0.85rem;
    max-width: 24rem;
  }

  .hero h1 {
    font-size: 2.05rem;
    letter-spacing: -0.045em;
  }

  .hero .lede {
    font-size: 1.02rem;
    line-height: 1.55;
    max-width: 22.5rem;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-note {
    max-width: 20rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.88rem;
  }

  .how-section {
    padding-top: 0.4rem;
  }

  .flow-bridge-line {
    height: 2.2rem;
  }

  .flow {
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-actions .btn {
    min-height: 2.35rem;
    padding: 0.5rem 0.95rem;
  }

  .hero-art {
    display: none;
  }

  .process {
    justify-content: center;
    max-width: 18rem;
    margin: 0 auto;
  }

  .qs-modal,
  .help-modal,
  .share-ready {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-height: 90vh;
    border-radius: 16px 16px 0 0;
  }

  .share-ready.in {
    transform: none;
  }

  .tour-card,
  .tour-card.is-center,
  .tour-card.is-dock {
    width: calc(100vw - 24px);
    left: 12px !important;
    right: 12px;
    top: auto !important;
    bottom: 12px !important;
    transform: none !important;
  }

  body.tour-on .qs-modal {
    top: 6vh;
    left: 0.6rem;
    right: 0.6rem;
    transform: none;
    width: auto;
    max-height: calc(100vh - 15.2rem);
  }
}

.signed-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.15rem 0 0;
  padding: 0.32rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.toast-host {
  position: fixed;
  z-index: 130;
  left: 50%;
  bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: grid;
  gap: 0.45rem;
  width: min(22rem, calc(100vw - 1.5rem));
  pointer-events: none;
}

.toast {
  padding: 0.72rem 0.9rem;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.toast.in {
  opacity: 1;
  transform: none;
}

.toast-err {
  background: #7a3a34;
  color: #fff;
}

.dash {
  padding: 1.35rem 0 3.2rem;
}

.dash-hero {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.35rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--line);
}

.dash-hero h1 {
  margin: 0.15rem 0 0.35rem;
  font-size: 1.7rem;
  letter-spacing: -0.04em;
}

.dash-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 32rem;
}

.dash-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.dash-stats {
  display: grid;
  gap: 0.8rem;
  margin: 0 0 1.2rem;
}

.dash-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.05rem 1.1rem 1.1rem;
  box-shadow: 0 10px 28px rgba(22, 24, 22, 0.05);
}

.dash-ico {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  margin: 0 0 0.7rem;
  border-radius: 9px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
}

.dash-ico svg {
  width: 1.1rem;
  height: 1.1rem;
  display: block;
}

.dash-card h3 {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mark);
}

.dash-card b {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.dash-card p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.dash-apk {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.6rem;
  padding: 1.15rem 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: 0 14px 36px rgba(22, 24, 22, 0.05);
}

.dash-apk-visual {
  display: grid;
  place-items: center;
  min-height: 8.5rem;
  border-radius: 14px;
  background: linear-gradient(180deg, #ece8de 0%, #d9d4c8 100%);
}

[data-theme="dark"] .dash-apk-visual {
  background: linear-gradient(180deg, #1e221d 0%, #151714 100%);
}

.dash-phone {
  position: relative;
  width: 4.6rem;
  height: 8rem;
  border-radius: 1.1rem;
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 16px 30px rgba(22, 24, 22, 0.18);
  display: grid;
  place-items: center;
}

.dash-phone i {
  position: absolute;
  top: 0.45rem;
  left: 50%;
  width: 1.5rem;
  height: 0.28rem;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.22);
  transform: translateX(-50%);
}

.dash-phone svg {
  width: 2.4rem;
  display: block;
}

.dash-apk-copy h2 {
  margin: 0.15rem 0 0.4rem;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.dash-apk-copy > p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  max-width: 34rem;
}

.dash-apk-feats {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.dash-apk-feats li {
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  font-size: 0.76rem;
  font-weight: 650;
}

.dash-apk-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
}

.dash-apk.is-open .dash-phone {
  background: #2f7a4a;
}

.dash-history-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0 0 0.7rem;
}

.dash-history-head h2 {
  font-size: 1.05rem;
  margin: 0;
}

.dash-pays {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}

.dash-pays .hint {
  padding: 1rem 1.05rem;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  background: var(--panel);
}

.dash-foot {
  margin: 0;
  text-align: right;
}

.dash-pay {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.dash-pay strong {
  display: block;
  font-size: 0.86rem;
}

.dash-pay span {
  color: var(--muted);
  font-size: 0.78rem;
}

.dash-pay .pill {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(111, 122, 104, 0.12);
}

.dash-pay .pill.paid {
  color: var(--ok);
  background: rgba(47, 122, 74, 0.12);
}

.dash-pay .pill.submitted {
  color: #8a6a22;
  background: rgba(214, 181, 106, 0.18);
}

.dash-pay .pill.expired,
.dash-pay .pill.rejected {
  color: var(--danger);
  background: rgba(179, 84, 72, 0.12);
}

.pay-page {
  padding-bottom: 3rem;
}

.pay-card {
  max-width: 44rem;
  margin: 0 auto 2rem;
  padding: 1.2rem 1.15rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.85rem;
}

.pay-amount {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0 0.8rem;
  background: var(--input-bg);
}

.pay-amount span {
  font-weight: 700;
  color: var(--muted);
}

.pay-amount input {
  border: 0;
  background: transparent;
  min-height: 2.6rem;
  width: 100%;
  font-size: 1.15rem;
  font-weight: 700;
}

.pay-presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 0.5rem;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  overflow: hidden;
}

.pay-coin-label {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  font-weight: 650;
}

.pay-coins {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.45rem;
}

.pay-coin {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  padding: 0.55rem 0.6rem;
  cursor: pointer;
  color: inherit;
}

.pay-coin.on {
  border-color: var(--ink);
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--ink);
}

.pay-coin strong,
.pay-coin em {
  display: block;
}

.pay-coin em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.72rem;
}

.pay-coin-ico {
  width: 1.85rem;
  height: 1.85rem;
  flex-shrink: 0;
}

.pay-coin-ico svg {
  display: block;
  width: 100%;
  height: 100%;
}

.pay-coin-ico.sm {
  width: 1.55rem;
  height: 1.55rem;
}

.pay-estimate {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  min-height: 1.2rem;
}

.pay-bg {
  position: fixed;
  inset: 0;
  z-index: 92;
  background: rgba(22, 24, 22, 0.42);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.pay-sheet {
  position: fixed;
  z-index: 93;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -44%) scale(0.96);
  width: min(26.5rem, calc(100vw - 1.4rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.3rem 1.2rem 1.15rem;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#pay-modal.in .pay-bg,
#pay-modal.in .pay-sheet {
  opacity: 1;
}

#pay-modal.in .pay-sheet {
  transform: translate(-50%, -50%) scale(1);
}

.pay-sheet-mark {
  width: 2.6rem;
  height: 2.6rem;
  margin: 0 auto 0.6rem;
}

.pay-sheet h2 {
  margin: 0 0 0.3rem;
  font-size: 1.2rem;
}

.pay-sheet > p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.pay-qr {
  width: 13.2rem;
  height: 13.2rem;
  margin: 0 auto 0.85rem;
  padding: 0.55rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.pay-qr img {
  width: 100%;
  height: 100%;
  display: block;
}

.pay-sum {
  margin-bottom: 0.7rem;
}

.pay-sum strong {
  display: block;
  font-size: 1.25rem;
}

.pay-sum span {
  color: var(--muted);
  font-size: 0.84rem;
}

.pay-addr {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.45rem 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  margin-bottom: 0.7rem;
}

.pay-addr code {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.72rem;
  text-align: left;
}

.pay-copy {
  width: 2.3rem;
  height: 2.3rem;
  border: 0;
  border-radius: 9px;
  background: var(--ink);
  color: var(--bg);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.pay-timer {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.pay-timer b {
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-size: 1.05rem;
}

.pay-timer b.low {
  color: var(--danger);
}

.pay-hash-lede {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
}

.pay-hash {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.pay-hash input {
  width: 100%;
  min-height: 2.4rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--input-bg);
  padding: 0.5rem 0.7rem;
}

.pay-done {
  width: 100%;
}

@media (min-width: 860px) {
  .dash-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pay-coins {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .dash-pay {
    grid-template-columns: auto 1fr;
  }

  .dash-pay .pill,
  .dash-pay .btn {
    grid-column: 2;
    justify-self: start;
  }

  .pay-sheet {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(12px);
    width: 100%;
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
  }

  #pay-modal.in .pay-sheet {
    transform: none;
  }
}
