.landing-page {
  display: none;
}

.auth-loading {
  display: none;
}

.is-auth-booting .auth-loading {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  background: #111410;
  color: #f3f5ec;
  text-align: center;
}

.auth-loading p {
  margin: 0;
}

.auth-loading a {
  color: #b9c4b0;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

.is-auth-booting body > :is(.landing-page, .sidebar, .account-dashboard, .main-app, .stage-top, .playback-bar) {
  display: none !important;
}

body.is-landing > :is(.sidebar, .main-app, .stage-top, .playback-bar) {
  display: none;
}

.is-landing .landing-page {
  display: grid;
  grid-template-rows: repeat(4, auto);
  align-content: start;
  gap: clamp(24px, 4vh, 54px);
  min-height: 100vh;
  min-height: 100dvh;
  padding: clamp(24px, 4vw, 60px) clamp(24px, 5vw, 86px) 27px;
  background:
    radial-gradient(ellipse at 80% 43%, #202d1a 0%, transparent 44%),
    #111410;
  color: #f3f5ec;
}

.landing-header,
.landing-main,
.landing-overview,
.landing-footer {
  width: min(100%, 1280px);
  margin-inline: auto;
}

.landing-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 27px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: -.07em;
}

.landing-brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: #1b291d;
  color: #d7f786;
}

.landing-brand-mark svg {
  width: 22px;
  height: 22px;
}

.landing-brand-dot {
  color: #d7f786;
}

.landing-main {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 5vw, 78px);
}

.landing-copy {
  min-width: 0;
  padding-block: 8px;
}

.landing-copy h1 {
  margin: 0;
  font-size: clamp(3.2rem, 6.1vw, 6.55rem);
  font-weight: 740;
  line-height: .99;
  letter-spacing: -.079em;
  text-wrap: balance;
}

.landing-copy h1 span {
  color: #d7f786;
}

.landing-copy > p:not(.landing-auth-feedback) {
  max-width: 34ch;
  margin: clamp(21px, 3.8vw, 35px) 0 25px;
  color: #b9c4b0;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.65;
}

.landing-actions,
.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-actions {
  align-items: stretch;
}

.reader-install-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid #425638;
  color: #d3e4c2;
  font-size: 12px;
  white-space: nowrap;
}

.reader-install-button svg { width: 16px; height: 16px; }

@media (max-width: 600px) {
  .reader-install-button { min-height: 36px; padding-inline: 8px; }
}

@media (max-width: 450px) {
  .reader-install-button { min-width: 36px; }
  .reader-install-button span { display: none; }
}

.install-guide-dialog {
  width: min(530px, calc(100% - 24px));
  height: 620px;
  max-height: calc(100dvh - 24px);
  padding: clamp(16px, 4.5vw, 24px);
  border-color: #526545;
  background: #171f16;
}

.install-guide-dialog[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.install-guide-dialog h2 { font-size: clamp(20px, 5vw, 24px); }

.install-guide-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  flex: none;
  gap: 4px;
  margin-bottom: 6px;
  padding: 4px;
  border: 1px solid #36452d;
  border-radius: 10px;
  background: #10170f;
}

.install-guide-tabs button {
  min-height: 44px;
  padding: 5px 2px;
  color: #c3cdb9;
  font-size: clamp(12px, 3.5vw, 14px);
  font-weight: 650;
}

.install-guide-tabs [aria-selected="true"] {
  border-color: #6a844e;
  background: #2a3920;
  color: var(--accent);
}

.install-guide-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
}

.install-guide-desktop-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  gap: 8px;
  margin: 6px 0 0;
}

.install-guide-desktop-action svg { width: 16px; height: 16px; }
.install-guide-status { margin: 6px 0 0; }
.install-guide-status:empty { margin: 0; }

.install-guide-steps {
  margin: 0;
  padding-inline-start: 23px;
}

.install-guide-steps li {
  padding: 12px 0;
  border-bottom: 1px solid #34412d;
}

.install-guide-steps li::marker {
  color: var(--accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.install-guide-steps h3 {
  margin: 0 0 7px;
  color: #ebf1e5;
  font-size: 14px;
  line-height: 1.4;
}

.install-guide-steps p, .install-guide-result p {
  margin: 0;
  color: #bfcbb4;
  font-size: 13px;
  line-height: 1.55;
}

.install-guide-steps strong, .install-guide-result strong { color: #e9f0e0; }
.install-guide-steps p + p { margin-top: 6px; }

.install-guide-example {
  display: flex;
  align-items: center;
  min-height: 44px;
  gap: 8px;
  margin-bottom: 7px;
  padding: 5px 7px;
  border: 1px solid #36452d;
  border-radius: 8px;
  background: #10170f;
  color: #bccab1;
  font-size: 12px;
  line-height: 1.4;
}

.install-guide-example svg { width: 16px; height: 16px; }

.install-guide-address {
  min-width: 0;
  flex: 1;
  padding: 5px 6px;
  overflow-wrap: anywhere;
  border-radius: 6px;
  background: #232b20;
}

.install-guide-target {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  border: 1px solid #7e9c53;
  border-radius: 6px;
  background: #2a381f;
  color: #e3f7b6;
  font-weight: 650;
}

.install-guide-example.install-guide-target { display: flex; }
.install-guide-confirm { flex-wrap: wrap; justify-content: space-between; }

.install-guide-result {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
}

.install-guide-result img { flex: none; border-radius: 9px; }

.landing-cta {
  display: inline-flex;
  min-height: 54px;
  max-width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  padding: 12px 17px;
  border: 1px solid #ebffb6;
  border-radius: 12px;
  background: linear-gradient(130deg, #e8fda8, #d7f786 68%);
  box-shadow: 0 6px 19px #b9e65c20, inset 0 1px #fff6;
  color: #182514;
  font-size: 1rem;
  font-weight: 740;
  line-height: 1.35;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.landing-cta svg {
  width: 19px;
  height: 19px;
}

.landing-actions .landing-cta {
  min-width: min(100%, 146px);
}

.landing-cta svg:last-child:not(:first-child) {
  margin-inline-start: auto;
}

.landing-cta:not(:disabled):hover {
  border-color: #f1ffcc;
  box-shadow: 0 8px 23px #c5ef682b, inset 0 1px #fff8;
  transform: translateY(-2px);
}

.landing-secondary {
  border-color: #546544;
  background: linear-gradient(155deg, #272f21, #1a2118);
  box-shadow: inset 0 1px #ffffff0b;
  color: #e5efd8;
}

.landing-secondary:not(:disabled):hover {
  border-color: #91a972;
  box-shadow: 0 5px 18px #0003;
}

.landing-secondary .landing-action-icon {
  color: var(--accent);
}

.account-actions .auth-button {
  flex: 1 1 86px;
  min-height: 42px;
  width: auto;
  border-radius: 9px;
  font-weight: 650;
  margin-bottom: 8px;
  margin-top: 0;
}

.account-actions #authButton:has(+ #registerButton:not([hidden])) {
  border-color: var(--accent);
  background: var(--accent);
  color: #182514;
}

.account-actions #authButton:has(+ #registerButton:not([hidden])):hover {
  background: #e8fda8;
}

.account-dialog {
  width: calc(100% - 28px);
  max-width: 470px;
  padding: clamp(20px, 4vw, 31px);
  border: 1px solid #526545;
  border-radius: 24px;
  background: radial-gradient(ellipse at 12% 0%, #354629 0%, transparent 52%), #171f16;
  box-shadow: 0 28px 100px #000a, inset 0 1px #d7f78624;
}

.account-dialog::backdrop {
  background: #070a07b5;
  backdrop-filter: blur(6px);
}

.account-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.account-mark {
  display: grid;
  width: 45px;
  height: 45px;
  place-items: center;
  border: 1px solid #657d4d;
  border-radius: 13px;
  background: #bce46917;
  color: var(--accent);
}

.account-mark svg {
  width: 24px;
  height: 24px;
}

.account-close {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid #495a3e;
  border-radius: 10px;
  background: #131b13aa;
  color: #dbe6cf;
}

.account-close:hover {
  border-color: #7b925f;
  background: #283625;
}

.account-dialog h2 {
  margin: 16px 0 4px;
  color: #f0f5e8;
  font-size: clamp(1.68rem, 4vw, 2.1rem);
  font-weight: 720;
  line-height: 1.1;
  letter-spacing: -.045em;
}

.account-dialog > p {
  margin: 0 0 20px;
  color: #bdcab3;
  font-size: .93rem;
  line-height: 1.5;
}

.account-form,
.account-field,
.account-form-actions {
  display: grid;
}

.account-form {
  gap: 14px;
}

.account-field {
  gap: 6px;
}

.account-field label {
  color: #e3ecd8;
  font-size: .86rem;
  font-weight: 680;
}

.account-input {
  position: relative;
}

.account-input svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: #9caa90;
  pointer-events: none;
}

.account-input input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px 10px 42px;
  border: 1px solid #48583e;
  border-radius: 11px;
  background: #10170f;
  color: #edf3e6;
  font-size: 1rem;
}

.account-input input::placeholder {
  color: #8f9d85;
}

.account-input:focus-within svg {
  color: var(--accent);
}

.account-input input:focus {
  border-color: #b6d97f;
  outline: 2px solid #d7f78670;
  outline-offset: 1px;
}

.account-field small {
  color: #aebba4;
  font-size: .78rem;
}

.account-approval-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid #47583c;
  border-radius: 10px;
  background: #202d1d;
}

.account-approval-note svg {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: var(--accent);
}

.account-approval-note p {
  margin: 0;
  color: #c7d5bd;
  font-size: .82rem;
  line-height: 1.45;
}

.account-form-actions {
  gap: 2px;
}

.account-form-actions button:not(.landing-cta) {
  min-height: 40px;
  justify-self: center;
  padding: 7px 14px;
  color: #c4d4b8;
}

.account-form-actions button:not(.landing-cta):hover {
  color: var(--accent);
}

.approval-dialog {
  max-width: 510px;
}

.approval-notices {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.approval-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #586f45;
  border-radius: 10px;
  background: #202d1d;
  color: #e3eed8;
}

.approval-notice strong {
  min-width: 0;
  font-size: .85rem;
  overflow-wrap: anywhere;
}

.approval-whatsapp {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #819d59;
  border-radius: 8px;
  color: var(--accent);
  font-size: .84rem;
  font-weight: 650;
  text-decoration: none;
}

.approval-whatsapp:hover {
  background: #334327;
}

.approval-list {
  display: grid;
  gap: 8px;
  margin: 15px 0 0;
  padding: 0;
  list-style: none;
}

.approval-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid #46563a;
  border-radius: 8px;
}

.approval-list li > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.approval-list strong,
.approval-list small {
  overflow-wrap: anywhere;
}

.landing-cta:focus-visible,
.approval-whatsapp:focus-visible {
  outline: 2px solid #d7f786;
  outline-offset: 4px;
}

.landing-auth-feedback {
  max-width: 43ch;
  margin: 10px 0 0;
  color: #c7d5be;
  font-size: .875rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.landing-auth-feedback.is-error {
  color: #f1c9ad;
}

.landing-art {
  position: relative;
  isolation: isolate;
  width: 100%;
  aspect-ratio: 1.16;
  overflow: hidden;
  border: 1px solid #3f5134;
  border-radius: clamp(16px, 2.6vw, 32px);
  background:
    radial-gradient(ellipse at 50% 70%, #253820 0%, transparent 58%),
    linear-gradient(165deg, #202c1d, #141e14 50%, #101711);
  box-shadow: 0 28px 72px #0b0d0999, inset 0 1px #ecffd110;
}

.landing-beam {
  position: absolute;
  top: -7%;
  bottom: 24%;
  background: linear-gradient(180deg, #e2fcad30, #a2ca6830 49%, #b5dd6c04 97%);
}

.landing-beam-left {
  left: 0;
  width: 63%;
  clip-path: polygon(17% 0, 23% 0, 98% 100%, 55% 100%);
}

.landing-beam-center {
  left: 23%;
  width: 54%;
  background: linear-gradient(180deg, #ebfab438, #cbef7929 52%, #cae9910a 100%);
  clip-path: polygon(47% 0, 53% 0, 91% 100%, 9% 100%);
}

.landing-beam-right {
  right: 0;
  width: 63%;
  clip-path: polygon(77% 0, 83% 0, 45% 100%, 2% 100%);
}

.landing-stage-grid {
  position: absolute;
  inset: 66% -30% -45%;
  background:
    repeating-linear-gradient(0deg, #a6c98024 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, #a6c98020 0 1px, transparent 1px 33px);
  transform: perspective(180px) rotateX(51deg) scale(1.13);
  transform-origin: 50% 0;
  mask-image: radial-gradient(ellipse at 50% 3%, #000, transparent 73%);
}

.landing-stage-rings {
  position: absolute;
  left: 12%;
  right: 12%;
  top: 60%;
  height: 24%;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    #b6db7555 0%, #a9d36815 30%, transparent 44%,
    #a9d36845 46%, transparent 48%, transparent 61%,
    #acd8773b 63%, transparent 64%);
}

.landing-stage-mark {
  position: absolute;
  top: 44%;
  left: 50%;
  display: grid;
  width: 28%;
  aspect-ratio: 1;
  place-items: center;
  transform: translate(-50%, -50%);
  border: 1px solid #c9ed8499;
  border-radius: 30%;
  background: radial-gradient(circle at 44% 0%, #4a612e, #24351e 60%, #1a2918);
  box-shadow: 0 0 38px #b5db6248, inset 0 1px #f0ffc758;
  color: #d7f786;
}

.landing-stage-mark svg {
  width: 52%;
  height: 52%;
  filter: drop-shadow(0 0 10px #d7f78668);
}

.landing-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 0;
  text-align: center;
}

.landing-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  font-size: 13px;
}

.landing-legal-links a {
  color: #c5d1bb;
  text-underline-offset: 3px;
}

.landing-legal-links a:hover {
  color: var(--accent);
}

.landing-footer .developer-credit {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: #a6b29c;
  font-size: 13px;
}

.landing-overview {
  min-width: 0;
  margin-top: clamp(16px, 3vw, 40px);
  padding-top: clamp(30px, 5vw, 64px);
  border-top: 1px solid #35412d;
}

.landing-overview-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.landing-overview-heading h2 {
  max-width: 25ch;
  margin: 0;
  color: #f0f4e9;
  font-size: clamp(26px, 3.8vw, 42px);
  font-weight: 680;
  line-height: 1.18;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.landing-overview-heading > p {
  max-width: 65ch;
  margin: 17px 0 0;
  color: #b7c3ac;
  font-size: 15px;
  line-height: 1.7;
}

.landing-eyebrow,
.landing-copy > p.landing-eyebrow,
.landing-overview-heading > p.landing-eyebrow {
  max-width: 100%;
  margin: 0 0 15px;
  color: #b0cd8f;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.landing-feature {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 12px;
  padding: clamp(21px, 2.3vw, 29px);
  border: 1px solid #35452d;
  border-radius: 14px;
  background: #172014;
  overflow-wrap: anywhere;
}

.landing-feature > svg {
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
  color: #c5e494;
}

.landing-feature h3 {
  margin: 0;
  color: #e7efdc;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.35;
}

.landing-feature p {
  margin: 0;
  color: #b7c3ac;
  font-size: 15px;
  line-height: 1.65;
}

/* A single closing statement, distinct from the feature grid above. */
.landing-closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: center;
  gap: 36px;
  min-height: 250px;
  margin-top: 24px;
  padding: 34px 40px;
  overflow: hidden;
  border: 1px solid #425737;
  border-radius: 20px;
  background:
    radial-gradient(ellipse at 100% 50%, #526d2d26 0%, transparent 65%),
    linear-gradient(110deg, #1b2818, #162013);
  box-shadow: inset 0 1px 0 #d3efac08;
}

.landing-closing-copy { min-width: 0; }

.landing-closing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid #57734099;
  border-radius: 999px;
  background: #2a3a2080;
  color: #d3e9bb;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.landing-closing-badge svg { width: 14px; height: 14px; stroke-width: 2; }

.landing-closing h2 {
  max-width: 22ch;
  margin: 18px 0 12px;
  color: #f0f5e9;
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 680;
  line-height: 1.18;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.landing-closing p {
  max-width: 52ch;
  margin: 0;
  color: #b9c8ae;
  font-size: 15px;
  line-height: 1.65;
  text-wrap: pretty;
}

.landing-closing-art { position: relative; width: 290px; height: 184px; }

.closing-sheet {
  position: absolute;
  width: 218px;
  padding: 17px 19px;
  border: 1px solid #4a613b;
  border-radius: 12px;
  background: #202e1b;
  box-shadow: 0 10px 28px #08100635;
}

.closing-sheet > span { display: block; margin-bottom: 12px; color: #a5ba92; font-size: 9px; font-weight: 650; letter-spacing: .16em; }
.closing-sheet strong { display: flex; align-items: baseline; justify-content: space-between; color: #d7edb8; font-size: 20px; font-weight: 600; letter-spacing: -.02em; }
.closing-sheet b { color: #687e55; font-size: 12px; font-weight: 400; }
.closing-sheet i { display: block; width: 86%; height: 3px; margin-top: 9px; border-radius: 2px; background: #53664466; }
.closing-sheet i + i { width: 69%; margin-top: 6px; }
.closing-sheet i:last-child { width: 78%; }
.closing-sheet-degrees { top: 5px; right: 4px; transform: rotate(6deg); background: #1a2616; }
.closing-sheet-notes { bottom: 0; left: 0; transform: rotate(-4deg); }

@media (min-width: 601px) and (max-width: 900px) {
  .landing-closing { grid-template-columns: minmax(0, 1fr) 230px; gap: 24px; padding: 30px; }
  .landing-closing-art { width: 230px; height: 170px; }
  .closing-sheet { width: 190px; padding: 16px; }
  .closing-sheet strong { font-size: 18px; }
}

@media (max-width: 1000px) {
  .landing-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  .is-landing .landing-page {
    gap: 21px;
  }

  .landing-main {
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 25px;
  }

  .landing-copy {
    padding-block: 8px 0;
  }

  .landing-copy h1 {
    max-width: 14ch;
    font-size: clamp(2.8rem, 9.9vw, 5.3rem);
    text-wrap: wrap;
  }

  .landing-art {
    width: min(100%, 500px);
    max-height: 258px;
    aspect-ratio: 1.72;
  }

  .landing-stage-mark {
    width: 21%;
  }
}

@media (max-width: 600px) {
  .landing-overview {
    margin-top: 12px;
    padding-top: 30px;
  }

  .landing-overview-heading {
    margin-bottom: 23px;
  }

  .landing-feature-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .landing-feature {
    gap: 11px;
    padding: 22px;
  }

  .landing-closing {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-height: 0;
    margin-top: 20px;
    padding: 26px 24px;
    border-radius: 17px;
  }

  .landing-closing h2 { max-width: 18ch; font-size: 29px; }
  .landing-closing p { font-size: 14px; }
  .landing-closing-art { display: none; }

}

@media (max-width: 360px) {
  .is-landing .landing-page {
    padding-inline: 20px;
  }

  .landing-copy h1 {
    font-size: 2.62rem;
  }

  .landing-actions .landing-cta {
    flex: 1 1 128px;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-cta {
    transition: none;
  }

  .landing-cta:not(:disabled):hover {
    transform: none;
  }
}
.landing-copy > p.landing-intro {
  max-width: 35ch;
  margin: clamp(20px, 3vw, 30px) 0 26px;
}
