/* Property landing page (landing_property.html) - only what differs from
   landing.css. Scoped under .lp-property so the base page is untouched. */

.lp-property { --why-glow: rgba(30, 26, 22, .78); }
:root[data-theme="light"] .lp-property { --why-glow: rgba(246, 244, 239, .86); }

/* Hand-drawn floor-plan sketch behind a section. The centre column is masked
   clear so it only shows down the edges of a wide screen. */
.lp-prop-sketch {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 calc(50% - 760px), transparent calc(50% - 470px), transparent calc(50% + 470px), #000 calc(50% + 760px), #000 100%);
  mask-image: linear-gradient(90deg, #000 0, #000 calc(50% - 760px), transparent calc(50% - 470px), transparent calc(50% + 470px), #000 calc(50% + 760px), #000 100%);
}
.lp-prop-hero-sketch {
  background-image: url("../images/landing/property-sketch-left.ee558930b76b.svg"), url("../images/landing/property-sketch-right.191ddb56a48f.svg");
  background-size: 840px 1000px, 760px 1000px;
  background-position: left -40px top, right -40px top;
}
.lp-prop-why-sketch {
  background-image: url("../images/landing/property-sketch.0079a70a5693.svg");
  background-size: 1600px 1000px;
  background-position: center center;
}
.lp-property .lp-hero-content { position: relative; z-index: 1; }

/* Four facts under the URL field: a row with dividers on desktop, a 2x2 grid
   on a phone with the title above and the icon beside the detail. */
.lp-prop-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 1000px; margin: 36px auto 0; padding: 0; list-style: none; text-align: left; }
.lp-prop-feats li { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 4px 22px; }
.lp-prop-feats li + li { border-left: 1px solid var(--border-subtle); }
.lp-prop-feat-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-card); box-shadow: 0 1px 2px rgba(26, 24, 22, .06), 0 0 0 1px var(--border-subtle); color: var(--color-primary); }
.lp-prop-feat-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lp-prop-feat-title { font-size: 15px; font-weight: 600; line-height: 1.2; color: var(--text-strong); }
.lp-prop-feat-desc { font-size: 13px; line-height: 1.3; color: var(--text-subtle); }
@media (max-width: 760px) {
  .lp-prop-feats { position: relative; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; row-gap: 36px; margin-top: 28px; }
  /* A faint cross between the four cells, fading out at its ends. */
  .lp-prop-feats::before,
  .lp-prop-feats::after { content: ""; position: absolute; pointer-events: none; }
  .lp-prop-feats::before { left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, var(--border-default) 20%, var(--border-default) 80%, transparent); }
  .lp-prop-feats::after { top: 50%; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border-default) 15%, var(--border-default) 85%, transparent); }
  .lp-prop-feats li { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "t t" "i d"; column-gap: 10px; row-gap: 8px; padding: 4px 0; }
  .lp-prop-feats li + li { border-left: none; }
  .lp-prop-feat-icon { grid-area: i; }
  .lp-prop-feat-text { display: contents; }
  .lp-prop-feat-title { grid-area: t; }
  .lp-prop-feat-title, .lp-prop-feat-desc { hyphens: auto; overflow-wrap: anywhere; }
  .lp-prop-feat-desc { grid-area: d; }
  /* The left column mirrors the right: right-aligned, icon on the outer edge. */
  .lp-prop-feats li:nth-child(odd) { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t t" "d i"; text-align: right; }
}

@media (max-width: 760px) {
  /* Phone: the sketch moves into the top-left and bottom-right corners of the
     hero, and onto the top edge of "How it works", faded vertically instead of
     masked out of a centre column the phone would be entirely inside. */
  .lp-prop-sketch { opacity: .7; }
  .lp-prop-hero-sketch {
    background-size: 400px 476px, 362px 476px;
    background-position: left -70px top 40px, right -90px bottom 0;
    -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 30%, transparent 72%, #000 100%);
    mask-image: linear-gradient(180deg, #000 0, transparent 30%, transparent 72%, #000 100%);
  }
  .lp-prop-why-sketch {
    background-size: 880px 550px;
    background-position: center top;
    -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 26%);
    mask-image: linear-gradient(180deg, #000 0, transparent 26%);
  }
  /* Brand row: the four shortest names on one line. */
  .lp-property .pc-sp-logos { gap: 1rem; flex-wrap: nowrap; justify-content: center; }
  .lp-property .pc-uni-extra { display: none; }
}
.lp-property .lp-hero-note a { color: var(--text-link); }

/* Fixed star: hidden at first (the scroll script in landing.html eases it in)
   and capped by the viewport height so it never crowds a short window. */
.lp-property .lp-bg-star {
  --star-size: min(var(--backdrop-iris-size), 92vh);
  right: calc(var(--star-size) * -0.32);
  bottom: calc(var(--star-size) * -0.35);
  width: var(--star-size);
  height: var(--star-size);
  opacity: 0;
  transition: opacity 180ms linear;
}

/* No overflow:hidden here - it clipped the video's drop shadow into a hard
   line at the section edge. */
.lp-property .lp-usps { position: relative; }
/* The light theme's vignette on .lp-usps (colors.light.css), faded out at the
   top and bottom so it no longer ends in a dark band at the section edge. */
:root[data-theme="light"] .lp-property .lp-usps { background: none; }
:root[data-theme="light"] .lp-property .lp-usps::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(55% 55% at 50% 55%, rgba(255, 255, 255, .55) 0%, transparent 65%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 140px, #000 calc(100% - 180px), transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 140px, #000 calc(100% - 180px), transparent 100%);
}
.lp-property .lp-usps-inner { position: relative; }
/* Soft glow behind the heading so it stays readable over the sketch. */
.lp-property .lp-usps-head { position: relative; isolation: isolate; }
.lp-property .lp-usps-head::before { content: ""; position: absolute; z-index: -1; pointer-events: none; left: 50%; top: 50%; width: 150%; height: 220%; transform: translate(-50%, -50%); background: radial-gradient(closest-side, var(--why-glow), transparent); filter: blur(8px); }

/* URL field: the page's one ask, so it is bigger than the base page's and
   breathes - a pulsing terracotta halo, a sheen sweeping across, the link
   badge and the button's arrow nudging in time. Focus stills it.
   Every loop animates only transform/opacity, so it runs on the compositor:
   a box-shadow keyframe repainted the field every frame and doubled the
   mobile Total Blocking Time. The halo is therefore a separate layer behind
   the field (.lp-hero-actions::before, the field's exact size), pulsing its
   opacity and scale over the field's own static ring. */
.lp-property .lp-hero-actions { position: relative; margin: 32px 0 0; }
.lp-property .lp-hero-actions:has(.lp-hero-url)::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: min(640px, 100%); pointer-events: none;
  border-radius: var(--radius-pill);
  box-shadow: 0 0 0 12px color-mix(in srgb, var(--color-primary) 6%, transparent), 0 22px 48px -18px color-mix(in srgb, var(--color-primary) 55%, transparent);
  transform: translateX(-50%);
  opacity: 0;
  animation: lp-url-halo 2.8s ease-in-out infinite;
}
.lp-property .lp-hero-actions:focus-within::before { animation: none; opacity: 0; }
.lp-property .lp-hero-url {
  position: relative;
  z-index: 1;
  overflow: hidden;
  gap: 12px;
  width: min(640px, 100%);
  padding: 8px;
  border: 2px solid color-mix(in srgb, var(--color-primary) 60%, transparent);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--color-primary) 10%, transparent), 0 18px 40px -18px color-mix(in srgb, var(--color-primary) 40%, transparent);
}
.lp-property .lp-hero-url:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 9px color-mix(in srgb, var(--color-primary) 18%, transparent), 0 18px 40px -18px color-mix(in srgb, var(--color-primary) 45%, transparent);
}
.lp-property .lp-hero-url::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 28%; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--color-primary) 14%, transparent), transparent);
  animation: lp-url-sheen 4.2s ease-in-out infinite;
}
.lp-property .lp-hero-url > * { position: relative; }
.lp-property .lp-hero-url-icon {
  width: 19px; height: 19px;
  box-sizing: content-box;
  padding: 17.5px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-primary) 14%, transparent);
  color: var(--color-primary);
  animation: lp-url-badge 2.8s ease-in-out infinite;
}
.lp-property .lp-hero-url-input { height: 46px; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.lp-property .lp-hero-url-btn { height: 54px; padding: 0 12px 0 24px; font-size: 16px; letter-spacing: -.015em; }
.lp-property .lp-hero-url-btn svg {
  width: 15px; height: 15px;
  box-sizing: content-box;
  padding: 7.5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .24);
  stroke-width: 2.6;
  animation: lp-url-nudge 2.8s ease-in-out infinite;
}
.lp-property .lp-hero-note { margin-top: 12px; max-width: 640px; font-size: 13px; line-height: 1.3; }
@keyframes lp-url-halo { 0%, 100% { opacity: 0; transform: translateX(-50%) scale(.98); } 50% { opacity: 1; transform: translateX(-50%) scale(1); } }
@keyframes lp-url-sheen { 0%, 55% { transform: translateX(-120%) skewX(-20deg); } 100% { transform: translateX(320%) skewX(-20deg); } }
@keyframes lp-url-nudge { 0%, 60%, 100% { transform: translateX(0); } 75% { transform: translateX(4px); } 90% { transform: translateX(-1px); } }
@keyframes lp-url-badge { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@media (prefers-reduced-motion: reduce) {
  .lp-property .lp-hero-actions::before, .lp-property .lp-hero-url::before, .lp-property .lp-hero-url-icon, .lp-property .lp-hero-url-btn svg { animation: none; }
}
/* Phone: one compact row - a smaller link badge, the field, and a round
   arrow button whose label is clipped (kept as its accessible name). */
@media (max-width: 760px) {
  .lp-property .lp-hero-url { padding: 4px; gap: 8px; border-width: 1.5px; }
  .lp-property .lp-hero-url-icon { display: block; width: 16px; height: 16px; padding: 10px; }
  .lp-property .lp-hero-url-input { height: 36px; padding: 0 2px; font-size: 14.5px; }
  .lp-property .lp-hero-url-btn { width: 40px; height: 40px; padding: 0; gap: 0; border-radius: 50%; }
  .lp-property .lp-hero-url-btn .lp-hero-cta-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .lp-property .lp-hero-url-btn svg { padding: 12.5px; background: transparent; }
  .lp-property .lp-hero-note-trial { display: block; }
}

/* Closing CTA: left-aligned on the terracotta panel, with the sketch's right
   half drawn in white fading in behind the right side; pill buttons. */
.lp-property .lp-cta-panel { position: relative; overflow: hidden; text-align: left; padding: 64px 56px; }
.lp-property .lp-cta-panel::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 58%; pointer-events: none; opacity: .6;
  background: url("../images/landing/property-sketch-right-white.551ff7b622f6.svg") left -40px top -60px / 760px 1000px no-repeat;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40%);
  mask-image: linear-gradient(90deg, transparent 0, #000 40%);
}
.lp-property .lp-cta-panel > * { position: relative; max-width: 560px; }
.lp-property .lp-cta-panel h2 { line-height: 1.05; text-wrap: balance; }
.lp-property .lp-cta-panel p { margin: 0 0 28px; }
.lp-property .lp-cta-actions { justify-content: flex-start; }
.lp-property .lp-cta-actions .lp-btn { height: 54px; padding: 0 26px; border-radius: var(--radius-pill); }
.lp-property .lp-cta-actions .lp-btn.on-brand { padding: 0 10px 0 24px; }
.lp-property .lp-cta-actions .lp-btn.on-brand svg { width: 16px; height: 16px; box-sizing: content-box; padding: 9px; border-radius: 50%; background: rgba(255, 255, 255, .16); stroke-width: 2.4; }
@media (max-width: 760px) {
  .lp-property .lp-cta-panel { padding: 38px 22px; }
  .lp-property .lp-cta-panel::before { width: 100%; opacity: .3; }
}

/* Three style tiles: two 9:16 reels and one 16:9, all the same height. */
.lp-prop-diagram { max-width: 980px; margin: 52px auto 0; }
.lp-prop-label { margin-bottom: var(--space-4); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-body); text-align: center; }
/* "How it works" clip in place of the base page's phone + USP columns: 16:9
   on desktop, the 4:5 cut below 760px (swapped in JS on resize). */
.lp-prop-how { max-width: 960px; margin: 0 auto; }
.lp-prop-how video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 28px; box-shadow: 0 56px 80px -40px rgba(0, 0, 0, .30), 0 0 0 1px rgba(26, 24, 22, .08); background: #ebe6e0; }
/* Paused: a light veil and a round play button with a pulsing ring (as on the
   thesisai landing hero). */
.lp-prop-how { position: relative; cursor: pointer; }
.lp-prop-how::after { content: ""; position: absolute; inset: 0; border-radius: 28px; background: rgba(250, 248, 244, 0.28); opacity: 0; transition: opacity 180ms ease; pointer-events: none; }
.lp-prop-how.is-paused::after { opacity: 1; }
.lp-prop-how-play { position: absolute; left: 50%; top: 50%; z-index: 1; width: 96px; height: 96px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.96); color: #0e1320; box-shadow: 0 18px 48px rgba(20, 18, 16, 0.35), 0 0 0 1px rgba(20, 18, 16, 0.05); transform: translate(-50%, -50%) scale(0.9); opacity: 0; transition: opacity 180ms ease, transform 180ms ease; pointer-events: none; }
.lp-prop-how-play svg { margin-left: 6px; }
.lp-prop-how-play::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.4); animation: lp-how-ring 2.6s ease-out infinite; }
@keyframes lp-how-ring { 0% { transform: scale(0.95); opacity: 0.7; } 70%, 100% { transform: scale(1.25); opacity: 0; } }
.lp-prop-how.is-paused .lp-prop-how-play { opacity: 1; transform: translate(-50%, -50%); }
.lp-prop-how.is-paused:hover .lp-prop-how-play { transform: translate(-50%, -50%) scale(1.05); background: #fff; }
@media (max-width: 760px) { .lp-prop-how { max-width: 520px; } .lp-prop-how-play { width: 72px; height: 72px; } .lp-prop-how video { aspect-ratio: 4 / 5; } }
.lp-prop-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 3.16fr); gap: var(--space-4); align-items: start; }
/* Dark behind the video, not --surface-sunken: at a fractional tile width the
   video can fall a pixel short of the rounded edge, and in the light theme
   that sliver showed as a white border. The video also overlaps by 1px. */
.lp-prop-row .lp-reel-tile { justify-content: flex-start; background: var(--coal-950); border: none; box-shadow: none; }
.lp-prop-row .lp-reel-tile video { inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); }
.lp-prop-row .lp-reel-tile.wide { aspect-ratio: 16 / 9; }
.lp-prop-caption { max-width: 1080px; margin: var(--space-3) auto 0; font-size: 13px; line-height: 1.3; color: var(--text-subtle); text-align: center; }

.lp-prop-mobile { display: none; }
.lp-prop-mobile .lp-mobile-cycle { width: 100%; max-width: 300px; margin: 0 auto; background: var(--coal-950); border: none; box-shadow: none; touch-action: pan-y; }
.lp-prop-mobile .lp-mobile-layer { justify-content: flex-start; padding: 10px; }
.lp-prop-mobile .lp-mobile-layer video { background: var(--coal-950); }
.lp-prop-mobile .lp-mobile-dots { justify-content: center; gap: 2px; margin-top: 4px; }
.lp-prop-mobile .lp-mobile-dots button { display: flex; align-items: center; height: 28px; padding: 0 4px; border: none; background: none; cursor: pointer; }
.lp-prop-mobile .lp-mobile-dots span { display: block; height: 4px; transition: background 220ms var(--ease-standard), width 220ms var(--ease-standard); }
.lp-prop-mobile .lp-mobile-dots .is-active span { width: 26px; background: var(--color-primary); }
/* Phone arrows and sound toggle: round glass buttons over the clip. */
.lp-prop-nav, .lp-prop-sound { position: absolute; z-index: 3; width: 40px; height: 40px; padding: 0; border: none; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(10, 9, 8, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lp-prop-nav { top: 50%; margin-top: -20px; }
.lp-prop-nav.prev { left: 8px; }
.lp-prop-nav.next { right: 8px; }
.lp-prop-sound { right: 10px; bottom: 10px; background: rgba(10, 9, 8, .5); }
.lp-prop-sound[hidden] { display: none; }
.lp-prop-sound .on,
.lp-prop-sound.is-on .off { display: none; }
.lp-prop-sound.is-on .on { display: inline; }

@media (max-width: 760px) {
  .lp-prop-row { display: none; }
  .lp-prop-mobile { display: block; }
  .lp-prop-label { margin-bottom: 10px; font-size: 10px; }
}
