/* ==========================================================
   Press Studio Clone — custom styles (Tailwind handles utilities)
   ========================================================== */

html {
  scroll-behavior: smooth;
}

@font-face {
    font-family: 'problem solution';
    src: url('fonts/problemsolution.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}



::selection {
  background: #0a93ff;
  color: #fff;
}

:focus-visible {
  outline: 2px solid #0a93ff;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- Form controls ----------
   Tailwind's Preflight zeroes every border, and the forms only set a
   border-_color_ class, so inputs rendered borderless. Give all text
   inputs/selects/textareas a visible 1px border as the safe default.
   (Tailwind utilities like .border-gray-300 still win for color.) */
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
textarea,
select {
  border: 1px solid #d1d5db; /* gray-300 = #d1d5db */
  background-color: #ffffff;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):disabled,
textarea:disabled,
select:disabled {
  background-color: #f3f4f6; /* gray-100 */
}

/* ---------- Header ---------- */
#site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(11, 19, 36, 0.06);
}
#site-header.is-scrolled #header-inner {
  height: 64px;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 2px;
  width: 0;
  background: #0a93ff;
  transition: width 0.25s ease;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-link:hover {
  color: #0a93ff;
}

/* ---------- Hero: fanned card deck ---------- */
.deck-card {
  position: absolute;
  border-radius: 22px;
  box-shadow: 0 20px 45px -15px rgba(11, 19, 36, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 22px;
  transition: transform 0.4s ease;
}
.deck-card-front {
  z-index: 3;
}
.deck:hover .deck-card:nth-child(1) { transform: rotate(-18deg) translateX(-70px); }
.deck:hover .deck-card:nth-child(2) { transform: rotate(13deg) translateX(64px); }
.deck:hover .deck-card-front { transform: translateY(-8px) scale(1.02); }

.deck-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  color: white;
  background: rgba(255, 255, 255, 0.22);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: auto;
}

.float-chip {
  animation: float 5s ease-in-out infinite;
}
.float-chip-delay {
  animation-delay: 1.4s;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Marquee (partner logos) ---------- */
.marquee-row {
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee-left 34s linear infinite;
}
.marquee-track.marquee-reverse {
  animation-name: marquee-right;
}
.marquee-row:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes marquee-right {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.logo-chip {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 22px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(11, 19, 36, 0.06);
  color: #4b5875;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(11, 19, 36, 0.04);
}

/* ---------- Filter tabs ---------- */
.filter-tab {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: #4b5875;
  background: #fff;
  border: 1.5px solid rgba(11, 19, 36, 0.08);
  transition: all 0.2s ease;
  cursor: pointer;
}
.filter-tab:hover {
  border-color: #7cc9ff;
  color: #0672d6;
}
.filter-tab.active {
  background: #0a93ff;
  border-color: #0a93ff;
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(10, 147, 255, 0.6);
}

/* ---------- Template cards ---------- */
.tpl-card {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(11, 19, 36, 0.06);
  box-shadow: 0 2px 10px rgba(11, 19, 36, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tpl-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 34px -16px rgba(11, 19, 36, 0.28);
}
.tpl-card.is-hidden {
  display: none;
}
.tpl-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.tpl-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,0.45) 100%);
}
.tpl-badge {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: auto;
}
.tpl-icon {
  position: relative;
  z-index: 1;
  width: 30px;
  height: 30px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}
.tpl-name {
  position: relative;
  z-index: 1;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.3;
}
.tpl-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  min-width: 0;
}
.tpl-footer > span {
  min-width: 0;
}
.tpl-use {
  font-size: 12.5px;
  font-weight: 700;
  color: #0672d6;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef8ff;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.tpl-use:hover {
  background: #0a93ff;
  color: #fff;
}
.tpl-demo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: #6366f1;
  padding: 6px 11px;
  border-radius: 999px;
  background: #eef0ff;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.tpl-demo:hover {
  background: #6366f1;
  color: #fff;
}

/* ---------- Pricing cards ---------- */
.pricing-card {
  background: #fff;
  border: 1px solid rgba(11, 19, 36, 0.08);
  border-radius: 22px;
  padding: 32px 28px;
  position: relative;
}
.pricing-card-highlight {
  background: linear-gradient(160deg, #0a93ff, #0559a8);
  border: none;
  transform: scale(1.02);
  box-shadow: 0 24px 50px -20px rgba(10, 147, 255, 0.55);
}
.pricing-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #0b1324;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}
.pricing-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #0672d6;
  background: #eef8ff;
  padding: 5px 12px;
  border-radius: 999px;
}
.pricing-tag-light {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}
.pricing-btn {
  display: block;
  text-align: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 26px;
  transition: all 0.2s ease;
}
.pricing-btn-outline {
  border: 1.5px solid rgba(11, 19, 36, 0.12);
  color: #0b1324;
}
.pricing-btn-outline:hover {
  border-color: #0a93ff;
  color: #0672d6;
}
.pricing-btn-solid {
  background: #fff;
  color: #0672d6;
}
.pricing-btn-solid:hover {
  background: #0b1324;
  color: #fff;
}
.pricing-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-size: 14px;
  color: #29334a;
}
.pricing-list li {
  position: relative;
  padding-left: 26px;
}
.pricing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #eef8ff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230a93ff' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 10l3 3 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}
.pricing-list li.dim {
  color: rgba(11, 19, 36, 0.35);
}
.pricing-list li.dim::before {
  background-color: rgba(11, 19, 36, 0.06);
  opacity: 0.6;
}
.pricing-list-light {
  color: rgba(255, 255, 255, 0.9);
}
.pricing-list-light li::before {
  background-color: rgba(255, 255, 255, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 10l3 3 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}
.pricing-list-light li.dim {
  color: rgba(255, 255, 255, 0.4);
}

/* ---------- FAQ accordion ---------- */
.faq-item {
  background: #fff;
  border: 1px solid rgba(11, 19, 36, 0.08);
  border-radius: 16px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  text-align: left;
  font-weight: 600;
  font-size: 15px;
  color: #0b1324;
  cursor: pointer;
}
.faq-chevron {
  width: 18px;
  height: 18px;
  flex: none;
  color: #0a93ff;
  transition: transform 0.25s ease;
}
.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-answer p {
  padding: 0 22px 20px;
  color: #4b5875;
  font-size: 14.5px;
  line-height: 1.7;
}
.faq-item.is-open .faq-answer {
  max-height: 200px;
}

/* ---------- Footer ---------- */
.footer-link {
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: #fff;
}
.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.social-icon:hover {
  background: #0a93ff;
  color: #fff;
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Back to top ---------- */
#back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .float-chip { animation: none; }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- Small screens: tighten deck ---------- */
@media (max-width: 400px) {
  .deck-card { padding: 16px; }
}

/* ---------- Hosting cards ---------- */
.hosting-card {
  background: #fff;
  border: 1px solid rgba(11, 19, 36, 0.08);
  border-radius: 24px;
  padding: 34px 28px;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.hosting-icon-brand-500 { background: #0a93ff; }
.hosting-icon-amber-500 { background: #f59e0b; }
.hosting-icon-cyan-500 { background: #06b6d4; }
.hosting-icon-indigo-600 { background: #4f46e5; }
.hosting-icon-pink-500 { background: #ec4899; }
.hosting-icon-emerald-500 { background: #10b981; }
.hosting-icon-rose-500 { background: #f43f5e; }
.hosting-icon-violet-500 { background: #8b5cf6; }
.hosting-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px -20px rgba(10, 147, 255, 0.12);
  border-color: rgba(10, 147, 255, 0.2);
}
.hosting-card-featured {
  background: linear-gradient(160deg, #0a93ff, #0559a8);
  border: none;
  transform: scale(1.02);
  box-shadow: 0 24px 50px -20px rgba(10, 147, 255, 0.55);
}
.hosting-card-featured:hover {
  transform: scale(1.03);
}

.hosting-badge {
  position: absolute;
  top: -14px;
  right: 28px;
  background: #0b1324;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
}
.hosting-card-featured .hosting-badge {
  background: #fff;
  color: #0559a8;
}

.hosting-discount {
  position: absolute;
  top: -14px;
  left: 28px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}

.hosting-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  color: #fff;
  box-shadow: 0 8px 20px rgba(10, 147, 255, 0.3);
}
@each $color in (brand-500, amber-500, cyan-500, indigo-600, pink-500, emerald-500, rose-500, violet-500) {
  .hosting-icon-#{$color} {
    background: #{map-get($theme-colors, $color)};
  }
}

.hosting-btn {
  display: block;
  text-align: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14.5px;
  margin-bottom: 26px;
  transition: all 0.2s ease;
}
.hosting-btn-outline {
  border: 1.5px solid rgba(11, 19, 36, 0.12);
  color: #0b1324;
}
.hosting-btn-outline:hover {
  border-color: #0a93ff;
  color: #0672d6;
}
.hosting-btn-solid {
  background: #fff;
  color: #0672d6;
}
.hosting-btn-solid:hover {
  background: #0b1324;
  color: #fff;
}

.hosting-feature-list {
  display: flex;
  flex-direction: column;
  gap: 13px;
  font-size: 14px;
  color: #29334a;
}
.hosting-feature-list li {
  position: relative;
  padding-left: 26px;
}
.hosting-feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #eef8ff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230a93ff' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 10l3 3 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}
.hosting-feature-list li.dim {
  color: rgba(11, 19, 36, 0.35);
}
.hosting-feature-list li.dim::before {
  background-color: rgba(11, 19, 36, 0.06);
  opacity: 0.6;
}

.hosting-feature-list-light {
  color: rgba(255, 255, 255, 0.9);
}
.hosting-feature-list-light li::before {
  background-color: rgba(255, 255, 255, 0.15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 10l3 3 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
}
.hosting-feature-list-light li.dim {
  color: rgba(255, 255, 255, 0.4);
}
.hosting-feature-list-light li.dim::before {
  background-color: rgba(255, 255, 255, 0.08);
}

