/* Short product landing — tern.cc homepage & short-url tool polish */

.short-product {
  --sp-accent: #1266f1;
  --sp-accent-2: #5b8def;
  --sp-ink: #0f172a;
  --sp-muted: #64748b;
  --sp-surface: #ffffff;
  --sp-surface-soft: #f8fafc;
  --sp-border: rgba(15, 23, 42, 0.08);
  --sp-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  --sp-radius: 18px;
}

html[data-theme="dark"] .short-product {
  --sp-accent: #60a5fa;
  --sp-accent-2: #93c5fd;
  --sp-ink: #e2e8f0;
  --sp-muted: #94a3b8;
  --sp-surface: #101826;
  --sp-surface-soft: #0b1220;
  --sp-border: rgba(148, 163, 184, 0.18);
  --sp-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
}

.short-product .short-hero {
  position: relative;
  padding: 28px 0 8px;
}

body:has(.short-product) {
  overflow-x: clip;
}

.short-product .short-hero::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  height: 460px;
  background:
    radial-gradient(closest-side at 30% 45%, rgba(18, 102, 241, 0.2), transparent),
    radial-gradient(closest-side at 72% 25%, rgba(124, 92, 255, 0.13), transparent);
  filter: blur(36px);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 50%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 30%, #000 50%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

html[data-theme="dark"] .short-product .short-hero::before {
  background:
    radial-gradient(closest-side at 30% 45%, rgba(96, 165, 250, 0.16), transparent),
    radial-gradient(closest-side at 72% 25%, rgba(167, 139, 250, 0.1), transparent);
}

.short-product .short-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.short-product .short-product-body {
  width: 100%;
}

.short-plan-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.short-plan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.short-plan-main {
  flex: 1 1 0%;
  min-width: 0;
}

.short-plan-action {
  flex: 0 0 auto;
}

@media (max-width: 767px) {
  .short-plan-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.short-product .short-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--sp-border);
  background: rgba(255, 255, 255, 0.72);
  color: var(--sp-muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 600;
}

html[data-theme="dark"] .short-product .short-eyebrow {
  background: rgba(16, 24, 38, 0.8);
}

.short-product .short-hero h1.tool-page-h1 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3.4vw, 2.55rem);
  line-height: 1.2;
  font-weight: 780;
  letter-spacing: -0.02em;
  color: var(--sp-ink);
}

.short-product .short-hero-lead {
  margin: 0 auto 22px;
  max-width: 640px;
  color: var(--sp-muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.short-product .short-feature-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 26px;
}

.short-product .short-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--sp-border);
  background: var(--sp-surface);
  color: var(--sp-ink);
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
  white-space: nowrap;
}

.short-product .short-chip i {
  color: var(--sp-accent);
  font-size: 12px;
}

.short-product .short-create-card {
  text-align: left;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow);
  padding: 22px 22px 18px;
  margin: 0 auto 18px;
}

.short-product .short-create-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 650;
  color: var(--sp-ink);
}

.short-product .short-url-input {
  height: 52px;
  border-radius: 12px !important;
  font-size: 15px;
  border: 1px solid var(--sp-border) !important;
  background: var(--sp-surface-soft) !important;
  color: var(--sp-ink) !important;
}

.short-product .short-url-input:focus {
  border-color: rgba(18, 102, 241, 0.45) !important;
  box-shadow: 0 0 0 4px rgba(18, 102, 241, 0.12) !important;
}

.short-product .short-alias-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-top: 12px;
}

.short-product .short-alias-row .input-group-text {
  border-radius: 12px 0 0 12px;
  border-color: var(--sp-border);
  background: var(--sp-surface-soft);
  color: var(--sp-muted);
  font-size: 13px;
}

.short-product .short-alias-row .form-control {
  border-radius: 0 12px 12px 0 !important;
  border-color: var(--sp-border) !important;
  background: var(--sp-surface-soft) !important;
  color: var(--sp-ink) !important;
  height: 44px;
}

.short-product .short-create-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.short-product .short-advanced-toggle {
  border: 0;
  background: transparent;
  color: var(--sp-accent);
  font-weight: 650;
  font-size: 13.5px;
  padding: 0;
  cursor: pointer;
}

.short-product .short-advanced-toggle i {
  margin-left: 4px;
  transition: transform 0.18s ease;
}

.short-product .short-advanced-toggle[aria-expanded="true"] i {
  transform: rotate(180deg);
}

.short-product .short-cta {
  min-width: 180px;
  height: 48px;
  border-radius: 12px !important;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 10px 24px rgba(18, 102, 241, 0.28);
}

.short-product .short-advanced {
  display: none;
  margin-top: 16px;
  padding: 16px 16px 8px;
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 14px;
  background: rgba(148, 163, 184, 0.06);
}

.short-product .short-advanced.is-open {
  display: block;
}

.short-product .short-trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 22px;
  margin: 6px 0 28px;
  color: var(--sp-muted);
  font-size: 13px;
}

.short-product .short-trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.short-product .short-trust-strip i {
  color: var(--sp-accent);
}

.short-product .short-plan-note {
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 22px;
  border: 1px solid var(--sp-border);
}

.short-product .vip-badge-card,
.short-product .free-mode-card {
  border-radius: 14px;
}

.short-product .vip-badge-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.short-product .free-mode-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
}

html[data-theme="dark"] .short-product .vip-badge-card {
  background: #052e16 !important;
  border-color: #166534 !important;
  color: #bbf7d0 !important;
}

html[data-theme="dark"] .short-product .vip-badge-card .text-muted {
  color: #86efac !important;
}

html[data-theme="dark"] .short-product .free-mode-card {
  background: #1c1917 !important;
  border-color: #78350f !important;
  color: #fde68a !important;
}

html[data-theme="dark"] .short-product .free-mode-card .text-muted {
  color: #fcd34d !important;
}

.short-product .short-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 28px;
}

.short-product .short-feature-card {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 16px;
  padding: 18px 16px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.short-product .short-feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.short-product .short-feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: rgba(18, 102, 241, 0.1);
  color: var(--sp-accent);
}

.short-product .short-feature-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  color: var(--sp-ink);
}

.short-product .short-feature-card p {
  margin: 0;
  color: var(--sp-muted);
  font-size: 13px;
  line-height: 1.55;
}

.short-product .short-section-card {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 16px;
  padding: 18px 18px 8px;
  margin-bottom: 22px;
}

.short-product .short-section-card h2,
.short-product .short-section-card h6 {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 750;
  color: var(--sp-ink);
}

.short-product .short-section-card .table,
.short-product .short-section-card .q-table {
  color: var(--sp-ink);
}

.short-compare-table .q-table {
  table-layout: auto;
}

.short-compare-table .q-table thead tr,
.short-compare-table .q-table tbody tr {
  height: auto;
}

.short-compare-table .q-table th,
.short-compare-table .q-table td {
  padding: 14px 20px !important;
  font-size: 14px !important;
  line-height: 1.65;
  white-space: normal;
  vertical-align: middle;
}

.short-compare-table .q-table th {
  font-weight: 700;
  background-color: rgba(15, 23, 42, 0.025);
}

.short-compare-table .q-table td:first-child {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .short-compare-table .q-table th,
  .short-compare-table .q-table td {
    padding: 12px 14px !important;
    font-size: 13.5px !important;
  }

  .short-compare-table .q-table td:first-child {
    white-space: normal;
  }
}

html[data-theme="dark"] .short-product .q-markup-table,
html[data-theme="dark"] .short-tool-legacy .q-markup-table {
  background-color: #101826 !important;
  color: #e2e8f0 !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
}

html[data-theme="dark"] .short-product .q-table th,
html[data-theme="dark"] .short-tool-legacy .q-table th {
  background-color: #162238 !important;
  color: #f1f5f9 !important;
  border-color: rgba(148, 163, 184, 0.22) !important;
}

html[data-theme="dark"] .short-product .q-table td,
html[data-theme="dark"] .short-tool-legacy .q-table td {
  color: #e2e8f0 !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
}

html[data-theme="dark"] .short-product .q-table .text-positive,
html[data-theme="dark"] .short-tool-legacy .q-table .text-positive {
  color: #4ade80 !important;
}

html[data-theme="dark"] .short-product .short-section-card table.bg-white,
html[data-theme="dark"] .short-product .card.card-body table.bg-white {
  background-color: #1e293b !important;
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .short-product .short-section-card table th,
html[data-theme="dark"] .short-product .short-section-card table td,
html[data-theme="dark"] .short-product .card.card-body table th,
html[data-theme="dark"] .short-product .card.card-body table td {
  border-color: rgba(148, 163, 184, 0.2) !important;
}

html[data-theme="dark"] .short-product .short-section-card table tr.bg-light,
html[data-theme="dark"] .short-product .short-section-card table th.bg-light,
html[data-theme="dark"] .short-product .card.card-body table tr.bg-light,
html[data-theme="dark"] .short-product .card.card-body table th.bg-light {
  background-color: #0f172a !important;
  color: #cbd5e1 !important;
}

html[data-theme="dark"] .short-product .form-control,
html[data-theme="dark"] .short-product .input-group-text {
  background-color: #1e293b !important;
  color: #f1f5f9 !important;
  border-color: rgba(148, 163, 184, 0.25) !important;
}

#short_qrcode {
  width: 160px;
  height: 160px;
  background: #fff;
  padding: 8px;
  border-radius: 8px;
  display: inline-block;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.short-stat-bar {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 90px;
  margin-top: 8px;
}

.short-stat-bar .bar {
  flex: 1;
  min-width: 8px;
  background: #3b82f6;
  border-radius: 3px 3px 0 0;
  opacity: 0.85;
}

html[data-theme="dark"] .short-stat-bar .bar {
  background: #60a5fa;
}

.vip-badge-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
}

.free-mode-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
}

html[data-theme="dark"] .vip-badge-card {
  background: #052e16 !important;
  border-color: #166534 !important;
  color: #bbf7d0 !important;
}

html[data-theme="dark"] .vip-badge-card .text-muted {
  color: #86efac !important;
}

html[data-theme="dark"] .free-mode-card {
  background: #1c1917 !important;
  border-color: #78350f !important;
  color: #fde68a !important;
}

html[data-theme="dark"] .free-mode-card .text-muted {
  color: #fcd34d !important;
}

/* Non-product /tools/short-url keeps compact tool layout helpers */
.short-tool-legacy .vip-badge-card {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
}

.short-tool-legacy .free-mode-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
}

.short-tool-legacy .short-advanced {
  border: 1px dashed rgba(148, 163, 184, 0.45);
  border-radius: 8px;
  padding: 16px 18px;
  background: rgba(148, 163, 184, 0.06);
}

html[data-theme="dark"] .short-tool-legacy .vip-badge-card {
  background: #052e16 !important;
  border-color: #166534 !important;
  color: #bbf7d0 !important;
}

html[data-theme="dark"] .short-tool-legacy .vip-badge-card .text-muted {
  color: #86efac !important;
}

html[data-theme="dark"] .short-tool-legacy .free-mode-card {
  background: #1c1917 !important;
  border-color: #78350f !important;
  color: #fde68a !important;
}

html[data-theme="dark"] .short-tool-legacy .free-mode-card .text-muted {
  color: #fcd34d !important;
}

html[data-theme="dark"] .short-tool-legacy #main_form.bg-grey {
  background-color: #101826 !important;
}

html[data-theme="dark"] .short-tool-legacy #main_form .form-control {
  background-color: #1e293b !important;
  color: #f1f5f9 !important;
  border-color: rgba(148, 163, 184, 0.25) !important;
}

html[data-theme="dark"] .short-tool-legacy .card.card-body.bg-light,
html[data-theme="dark"] .short-tool-legacy .short-advanced {
  background-color: #101826 !important;
}

html[data-theme="dark"] .short-tool-legacy .card.card-body table.bg-white {
  background-color: #1e293b !important;
  color: #f1f5f9 !important;
}

html[data-theme="dark"] .short-tool-legacy .card.card-body table th,
html[data-theme="dark"] .short-tool-legacy .card.card-body table td {
  border-color: rgba(148, 163, 184, 0.2) !important;
}

html[data-theme="dark"] .short-tool-legacy .card.card-body table tr.bg-light,
html[data-theme="dark"] .short-tool-legacy .card.card-body table th.bg-light {
  background-color: #0f172a !important;
  color: #cbd5e1 !important;
}

@media (max-width: 991px) {
  .short-product .short-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .short-product .short-create-card {
    padding: 16px;
  }

  .short-product .short-features {
    grid-template-columns: 1fr;
  }

  .short-product .short-create-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .short-product .short-cta {
    width: 100%;
  }

  .short-product .short-alias-row {
    flex-direction: column;
  }

  .short-product .short-alias-row .input-group {
    width: 100%;
  }
}
