:root {
  color-scheme: light;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: hidden;
}

[hidden] {
  display: none !important;
}

button,
input,
select {
  font: inherit;
}

input,
select {
  color: #111318;
}

button {
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, opacity .2s ease, transform .2s ease;
}

button:active {
  transform: translateY(1px);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(37, 87, 214, .3);
  outline-offset: 2px;
}

.logo-mark {
  display: grid;
  grid-template-columns: repeat(3, 6px);
  align-items: end;
  gap: 3px;
  width: 24px;
  height: 24px;
}

.logo-mark span {
  display: block;
  border-radius: 2px 2px 0 0;
  background: #48d6a2;
}

.logo-mark span:nth-child(1) { height: 12px; }
.logo-mark span:nth-child(2) { height: 22px; background: #fff; }
.logo-mark span:nth-child(3) { height: 17px; background: #ff715b; }
.logo-mark.small { transform: scale(.8); transform-origin: left center; }

.hero-grid {
  opacity: .07;
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, #000, transparent 92%);
}

.hero-art {
  background-image: url("/assets/hero-secure-cloud.webp?v=20260730");
  background-position: center;
  background-size: cover;
  filter: brightness(.66) saturate(.92);
  opacity: .82;
  transform: scale(1.015);
}

.hero-shade {
  background: rgba(5, 8, 16, .34);
}

.hero canvas {
  opacity: .76;
}

.upload-panel,
.dropzone,
.business-band,
.modal-card {
  border-radius: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #48d6a2;
  box-shadow: 0 0 0 7px rgba(72,214,162,.12);
  animation: pulse 2.4s ease-in-out infinite;
}

.section-kicker {
  color: #2557d6;
  font-size: .78rem;
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
}

.cycle-switch button.active {
  background: #fff;
  box-shadow: 0 1px 4px rgba(17,19,24,.12);
}

.plan-card {
  position: relative;
  overflow: hidden;
  border: 1px solid #dce1e7;
  border-radius: 8px;
  background: #fff;
  padding: 28px;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  border-color: #2557d6;
  box-shadow: 0 20px 45px rgba(17, 19, 24, .09);
}

.plan-card.highlight {
  border: 2px solid #2557d6;
}

.plan-card.highlight::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: #48d6a2;
}

#public-plans {
  min-height: 420px;
}

#quick-file-label,
#account-file-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#quick-result {
  max-width: 100%;
  overflow: hidden;
}

.upload-result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.upload-result-link {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.upload-result-copy {
  min-width: 40px;
  justify-content: center;
}

.check-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #111318;
  background: #48d6a2;
}

.business-lines {
  opacity: .22;
  background-image:
    linear-gradient(115deg, transparent 0 54%, rgba(72,214,162,.28) 54% 54.4%, transparent 54.4%),
    linear-gradient(62deg, transparent 0 68%, rgba(255,113,91,.25) 68% 68.35%, transparent 68.35%);
}

.faq[open] svg {
  transform: rotate(45deg);
}

.faq svg {
  transition: transform .2s ease;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-shell.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 11, 15, .76);
  backdrop-filter: blur(8px);
  animation: backdrop-in .24s ease-out;
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 470px);
  max-height: 90vh;
  overflow-y: auto;
  background: #fff;
  padding: 28px;
  box-shadow: 0 28px 80px rgba(0,0,0,.28);
  animation: modal-in .3s cubic-bezier(.2, .8, .2, 1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: #596274;
  background: #f3f5f7;
}

.field-label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
}

.field-input {
  display: block;
  width: 100%;
  height: 48px;
  margin-top: 7px;
  padding: 0 13px;
  border: 1px solid #cdd3dc;
  border-radius: 6px;
  outline: none;
}

.field-input:focus {
  border-color: #2557d6;
  box-shadow: 0 0 0 3px rgba(37,87,214,.1);
}

.primary-button {
  display: flex;
  width: 100%;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #2557d6;
  color: white;
  font-weight: 800;
  transition: background .2s ease;
}

.primary-button:hover {
  background: #1745b7;
}

.icon-button {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8dde4;
  border-radius: 6px;
  background: #fff;
  transition: color .2s ease, border-color .2s ease;
}

.icon-button:hover {
  color: #2557d6;
  border-color: #2557d6;
}

.icon-button.small {
  width: 34px;
  height: 34px;
}

.metric-label {
  color: #6a7382;
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-value {
  margin-top: 8px;
  font-size: 1.75rem;
  line-height: 1.1;
  font-weight: 800;
}

.mode-option:has(input:checked) {
  border-color: #2557d6;
  background: rgba(37,87,214,.04);
}

.toast {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  max-width: min(390px, calc(100vw - 40px));
  border-radius: 6px;
  background: #111318;
  padding: 13px 16px;
  color: #fff;
  font-size: .86rem;
  box-shadow: 0 16px 40px rgba(0,0,0,.2);
  animation: toast-in .2s ease-out;
}

.toast.error {
  background: #a72929;
}

.file-name {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.view-enter {
  animation: view-in .4s ease-out;
}

.reveal-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2, .8, .2, 1);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.auth-screen:not(.hidden),
#quick-result:not(.hidden) {
  animation: panel-in .28s ease-out;
}

.price-pop {
  animation: price-pop .24s ease-out;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 5px rgba(72,214,162,.1); }
  50% { box-shadow: 0 0 0 10px rgba(72,214,162,.02); }
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(18px) scale(.985); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes view-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes price-pop {
  0% { opacity: .55; transform: translateY(4px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding-top: 4.75rem;
    padding-bottom: 1.5rem;
  }
  .hero > div {
    gap: 1.5rem;
  }
  .hero-art {
    background-position: 64% center;
    filter: brightness(.46) saturate(.88);
    opacity: .78;
    transform: scale(1.04);
  }
  .hero-shade {
    background: rgba(5, 8, 16, .5);
  }
  .hero canvas {
    opacity: .68;
  }
  .hero h1 {
    font-size: 2.625rem;
    line-height: 1.06;
  }
  .hero h1 + p {
    margin-top: 1rem;
    font-size: 1.0625rem;
    line-height: 1.7;
  }
  .hero h1 + p + div {
    margin-top: 1.5rem;
    row-gap: .5rem;
    font-size: .75rem;
  }
  .upload-panel {
    width: 100%;
    padding: 16px;
  }
  .upload-panel .dropzone {
    min-height: 126px;
    padding: 20px 12px;
  }
  #quick-result > div {
    align-items: stretch;
  }
  .modal-card {
    padding: 24px 20px;
  }
  .file-name {
    max-width: 180px;
  }
  #public-plans {
    min-height: 0;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .upload-panel {
    width: min(100%, 560px);
    justify-self: center;
  }
}
