/* bobur.cc/templates – recreation of framerh.framer.website ("Framer House")
   Breakpoints: desktop >= 1200px, tablet 810–1199px, mobile < 810px */

:root {
  --line: #ebebeb;
  --muted: rgba(0, 0, 0, 0.6);
  --blue: #00a1ff;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.fh {
  padding-bottom: 150px;
  font-family: var(--font);
  color: #000;
  background: #fff;
  padding-top: 24px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

ul {
  list-style: none;
}

/* --------------------------------- Pills --------------------------------- */

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 8px 14px;
  border-radius: 40px;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: opacity 0.2s, background-color 0.2s;
}

.pill.dark {
  background: #000;
  color: #fff;
}

.pill.light {
  background: #fff;
  color: #000;
  box-shadow: inset 0 0 0 1px #ddd;
}

.pill:hover {
  opacity: 0.8;
}

/* -------------------------------- Header -------------------------------- */

.fh-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 37px;
}

.fh-brand {
  display: inline-flex;
  align-items: center;
  height: 37px;
  padding: 8px 14px;
  border-radius: 32px;
  background: #efefef;
  color: #333;
  font-size: 15px;
  line-height: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.fh-avatar {
  position: absolute;
  left: 50%;
  top: 1px;
  transform: translateX(-50%);
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.2s;
}

.fh-avatar:hover {
  transform: translateX(-50%) scale(1.06);
}

.fh-avatar img {
  width: 36px;
  height: 36px;
  object-fit: cover;
}

/* --------------------------------- Hero --------------------------------- */

.hero {
  padding: 150px 40px 0;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  max-width: 832px;
  font-size: 64px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.hero > p:not(.trusted) {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero > .pill {
  margin-top: 24px;
}

.faces {
  margin-top: 24px;
  display: flex;
  padding-left: 7px;
}

.face {
  position: relative;
  margin-left: -7px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #fff;
  transition: transform 0.2s;
}

.face img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}

.face:hover {
  transform: translateY(-2px);
  z-index: 2;
}

.face::after {
  content: attr(data-name);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, 4px);
  padding: 4px 8px;
  border-radius: 6px;
  background: #000;
  color: #fff;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  letter-spacing: -0.04em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s, transform 0.15s;
}

.face:hover::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.trusted {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* ----------------------------- Template grid ----------------------------- */

.tgrid {
  max-width: 1200px;
  margin: 80px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  scroll-margin-top: 24px;
}

@property --tcard-top {
  syntax: '<color>';
  inherits: false;
  initial-value: #fff;
}

/* Hover (as on framerh): card fades to a light-blue gradient, image grows 3% without clipping */
.tcard {
  --r: 0px;
  --b: 0px;
  --tcard-top: #fff;
  position: relative;
  padding: 40px;
  background: linear-gradient(180deg, var(--tcard-top) 0%, #fff 100%);
  box-shadow: inset 1px 1px 0 var(--line), inset calc(-1 * var(--r)) calc(-1 * var(--b)) 0 var(--line);
  display: flex;
  flex-direction: column;
  transition: --tcard-top 0.35s ease;
}

.tcard:hover {
  --tcard-top: #e5f6ff;
}

.tcard:nth-child(2n) {
  --r: 1px;
}

.tcard:nth-last-child(-n + 2) {
  --b: 1px;
}

.tcard-img {
  display: block;
  border-radius: 8px;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.tcard-img img {
  width: 100%;
  aspect-ratio: 520 / 383;
  object-fit: cover;
  border-radius: 8px;
}

.tcard:hover .tcard-img {
  transform: scale(1.03);
}

.badge-best {
  position: absolute;
  top: 24px;
  right: 25px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 72px;
  background: #ff9500;
  box-shadow: 0 0 0 2px #fff;
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.tcard-row {
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 500;
}

.tcard-name {
  letter-spacing: -0.02em;
}

.tcard-price {
  color: #666;
  letter-spacing: -0.03em;
}

.tcard-cat {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.tcard-btns {
  margin-top: 20px;
  display: flex;
  gap: 11px;
}

/* ------------------------------- Sections ------------------------------- */

.block {
  max-width: 1216px;
  margin: 150px auto 0;
}

.shead {
  text-align: center;
  margin-bottom: 40px;
}

.shead h2,
.stat h2 {
  font-size: 40px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.shead p {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.02em;
}

/* Steps */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  box-shadow: inset -1px -1px 0 var(--line);
}

.step {
  padding: 32px;
  box-shadow: inset 1px 1px 0 var(--line);
  display: flex;
  flex-direction: column;
}

.step-n {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.step-title {
  margin-top: 8px;
  font-size: 22px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.step-desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.step img {
  margin-top: 22px;
  width: 100%;
  aspect-ratio: 341 / 249;
  object-fit: cover;
}

/* Stats */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  box-shadow: inset -1px -1px 0 var(--line);
}

.stat {
  padding: 40px;
  box-shadow: inset 1px 1px 0 var(--line);
  text-align: center;
}

.stat span {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  line-height: 21px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #333;
}

/* Launched websites */

.launched {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.site {
  display: flex;
  flex-direction: column;
  padding: 1px;
}

.site-img {
  position: relative;
  display: block;
  border-radius: 8px;
  overflow: hidden;
}

.site-img::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid var(--line);
  pointer-events: none;
}

.site-img img {
  width: 100%;
  aspect-ratio: 382 / 226;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.site:hover .site-img img {
  transform: scale(1.02);
}

.site-name {
  margin-top: 14px;
  font-size: 14px;
  line-height: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #666;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site:hover .site-name {
  color: #000;
}

/* Testimonials */

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  box-shadow: inset -1px -1px 0 var(--line);
}

.quote {
  padding: 40px 40px 24px;
  box-shadow: inset 1px 1px 0 var(--line);
  display: flex;
  flex-direction: column;
}

.quote > img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.quote-text {
  margin-top: 40px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.quote > div {
  margin-top: 40px;
}

.quote-name {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.quote-role {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
}

/* Pricing */

#pricing {
  scroll-margin-top: 24px;
}

.plans {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.plan {
  position: relative;
  width: 376px;
  min-height: 499px;
  padding: 32px;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
}

.plan.dark {
  background: #000;
  color: #fff;
  box-shadow: none;
}

.plan-name {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #333;
}

.plan-price {
  margin-top: 8px;
  font-size: 40px;
  line-height: 1.6;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.plan-desc {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: #666;
}

.plan.dark .plan-name {
  color: #fff;
}

.plan.dark .plan-desc {
  color: rgba(255, 255, 255, 0.6);
}

.plan ul {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.plan li .check {
  flex-shrink: 0;
}

.plan-btn {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 12px 24px;
  border-radius: 40px;
  background: #000;
  color: #fff;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: opacity 0.2s;
}

.plan-btn.blue {
  background: var(--blue);
}

.plan-btn:hover {
  opacity: 0.85;
}

.save {
  position: absolute;
  top: 32px;
  right: 32px;
  padding: 4px 8px;
  border-radius: 48px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ------------------------------ Detail page ------------------------------ */

.tdetail {
  max-width: 1120px;
  margin: 100px auto 0;
  display: flex;
  align-items: flex-start;
  gap: 72px;
}

.tdetail-main {
  flex: 1;
  min-width: 0;
}

.tdetail-img {
  width: 100%;
  aspect-ratio: 678 / 500;
  object-fit: cover;
}

.tdetail-title {
  margin-top: 44px;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.tdetail-desc {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.tdetail-desc.no-title {
  margin-top: 44px;
}

.tdetail-desc p {
  margin: 0;
}

.tdetail-desc a {
  text-decoration: underline;
}

.tbuy {
  position: sticky;
  top: 80px;
  width: 370px;
  flex-shrink: 0;
  padding: 32px;
  box-shadow: inset 0 0 0 1px var(--line);
  display: flex;
  flex-direction: column;
}

.badge-best.small {
  position: static;
  align-self: flex-start;
  padding: 6px 12px;
  box-shadow: none;
  margin-bottom: 15px;
}

.tbuy-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.tbuy-cat {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.tbuy-pages {
  margin-top: 32px;
}

.tbuy-pages p {
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.tbuy-pages .dim {
  color: rgba(0, 0, 0, 0.4);
}

.chips {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.05);
  font-size: 13px;
  line-height: 17px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.tbuy-btns {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 12px 24px;
  border-radius: 40px;
  font-size: 15px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: -0.02em;
  transition: opacity 0.2s, background-color 0.2s;
}

.tbtn.dark {
  background: #000;
  color: #fff;
}

.tbtn.light {
  background: #fff;
  box-shadow: inset 0 0 0 1px #ddd;
}

.tbtn.dark:hover {
  opacity: 0.85;
}

.tbtn.light:hover {
  background: #f7f7f7;
}

.tbuy-feats {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tbuy-feats li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 15px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.tbuy-feats .check {
  flex-shrink: 0;
}

/* Gallery ticker */

.tgallery {
  max-width: 1120px;
  margin: 45px auto 0;
  overflow: hidden;
}

.tgallery-track {
  display: flex;
  width: max-content;
  animation: fh-ticker var(--ticker, 30s) linear infinite;
}

.tgallery-track img {
  width: 484px;
  height: 328px;
  margin-right: 20px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.tgallery:hover .tgallery-track {
  animation-play-state: paused;
}

@keyframes fh-ticker {
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tgallery {
    overflow-x: auto;
  }

  .tgallery-track {
    animation: none;
  }
}

/* Previous / next template */

.tnav {
  max-width: 1120px;
  margin: 45px auto 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.tnav-link {
  width: 51.16%;
  min-height: 71px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 20px;
  background: #f5f5f5;
  transition: background-color 0.2s;
}

.tnav.both .tnav-link {
  width: 33.84%;
}

.tnav-link:hover {
  background: #ececec;
}

.tnav-link.prev {
  padding: 12px 20px 12px 16px;
}

.tnav-link.next {
  padding: 12px 16px 12px 20px;
  margin-left: auto;
}

.tnav-link svg {
  flex-shrink: 0;
}

.tnav-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.tnav-name {
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.tnav-cat {
  font-size: 14px;
  line-height: 21px;
  letter-spacing: -0.02em;
  color: var(--muted);
}

.block.block-after-nav {
  margin-top: 180px;
}

/* ================================ Tablet ================================ */

@media (max-width: 1199.98px) {

  .tdetail,
  .tgallery,
  .tnav {
    margin-left: 32px;
    margin-right: 32px;
  }

  .tdetail {
    gap: 62px;
  }

  .tbuy {
    width: 320px;
    padding: 24px;
  }
  .fh-header {
    padding: 0 32px;
  }

  .hero {
    padding: 150px 32px 0;
  }

  .hero h1 {
    font-size: 50px;
    max-width: 650px;
  }

  .tgrid,
  .block {
    margin-left: 32px;
    margin-right: 32px;
  }

  .tgrid {
    max-width: none;
  }

  .step {
    padding: 24px;
  }

  .step-title {
    font-size: 18px;
    line-height: 1.4;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .launched {
    gap: 24px 16px;
  }

  .quotes {
    grid-template-columns: repeat(2, 1fr);
  }

  .plan {
    flex: 1;
    width: auto;
    max-width: 376px;
  }



  .shead p {
    margin-top: 16px;
  }


}

/* ================================ Mobile ================================ */

@media (max-width: 809.98px) {

  .tdetail {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
    margin-left: 16px;
    margin-right: 16px;
  }

  .tdetail-title {
    margin-top: 45px;
    font-size: 32px;
  }

  .tdetail-desc {
    font-size: 14px;
  }

  .tbuy {
    position: static;
    width: auto;
    padding: 24px;
  }

  .tgallery {
    margin-left: 0;
    margin-right: 0;
  }

  .tgallery-track img {
    width: 264px;
    height: 179px;
    margin-right: 16px;
  }

  .tnav {
    flex-direction: column;
    gap: 8px;
    margin-left: 16px;
    margin-right: 16px;
  }

  .tnav-link,
  .tnav.both .tnav-link {
    width: 100%;
  }

  .tnav-link.prev,
  .tnav-link.next {
    padding: 12px;
  }

  .tnav-name {
    font-size: 14px;
    line-height: 21px;
  }

  .block.block-after-nav {
    margin-top: 140px;
  }
  .fh-header {
    padding: 0 40px;
    height: 34px;
  }

  .fh-brand {
    display: none;
  }

  .fh-avatar {
    position: static;
    transform: none;
  }

  .fh-avatar:hover {
    transform: scale(1.06);
  }

  .fh-avatar img {
    width: 34px;
    height: 34px;
  }

  .hero {
    padding: 150px 16px 0;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero > p:not(.trusted) {
    font-size: 14px;
    line-height: 1.5;
  }

  .br-lg {
    display: none;
  }

  .tgrid {
    margin: 40px 16px 0;
    grid-template-columns: 1fr;
  }

  .tcard {
    --r: 1px;
    padding: 24px;
  }

  .tcard:nth-last-child(-n + 2) {
    --b: 0px;
  }

  .tcard:last-child {
    --b: 1px;
  }

  .badge-best {
    right: 24px;
  }

  .tcard-row {
    font-size: 17px;
  }

  .block {
    margin-left: 16px;
    margin-right: 16px;
  }

  .shead h2,
  .stat h2 {
    font-size: 32px;
  }

  .shead p {
    font-size: 14px;
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .step-title {
    font-size: 20px;
    line-height: 1.5;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .stat {
    padding: 32px;
  }

  .launched {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .site-img::after {
    border-width: 0.5px;
  }

  .site-name {
    margin-top: 7px;
    font-size: 11px;
    line-height: 16.5px;
  }

  .quotes {
    grid-template-columns: 1fr;
  }

  .quote {
    padding: 24px;
  }

  .quote-text {
    margin-top: 24px;
    font-size: 14px;
  }

  .quote > div {
    margin-top: 24px;
  }

  .plans {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .plan {
    max-width: none;
    min-height: 0;
  }

  .plan.dark {
    min-height: 499px;
  }

  .plan-btn {
    margin-top: 30px;
  }

  .plan.dark .plan-btn {
    margin-top: auto;
  }











}
