/* Partners page styles. */
.pt-hero { padding: 112px 0 96px; background: linear-gradient(180deg, #FDFDFE, var(--off-white-60)); border-bottom: 1px solid var(--color-border); position: relative; overflow: hidden; }
.pt-hero::before { content: ''; position: absolute; top: -240px; left: 50%; transform: translateX(-50%); width: 1200px; height: 600px; background: radial-gradient(ellipse at center, rgba(30,122,43,0.08), transparent 60%); pointer-events: none; }
.pt-hero-inner { position: relative; max-width: 920px; margin: 0 auto; text-align: center; }
.pt-hero .kicker.green { color: var(--green-text); }
.pt-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: 64px; line-height: 1.03; letter-spacing: -0.025em; margin: 20px 0 18px; }
.pt-hero p.lead { font-size: 20px; color: var(--color-text-muted); line-height: 1.5; max-width: 760px; margin: 0 auto; }

.pt-head { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end; margin-bottom: 44px; }
.pt-head .kicker.green { color: var(--green-text); }
.pt-head h2 { font-family: var(--font-display); font-weight: 600; font-size: 40px; letter-spacing: -0.02em; line-height: 1.1; margin-top: 16px; }
.pt-head p.lead { font-size: 16px; color: var(--color-text-muted); line-height: 1.55; max-width: 500px; }

.pt-int { padding: 104px 0; }
.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border: 1px solid var(--color-border); border-radius: 20px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(10,20,40,0.03); }
.logo-wall .tile { aspect-ratio: 2/1; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--color-border-subtle); border-bottom: 1px solid var(--color-border-subtle); padding: 20px 24px; position: relative; transition: background var(--motion-base) var(--ease-standard); }
.logo-wall .tile:hover { background: var(--off-white-40); }
.logo-wall .tile:nth-child(6n) { border-right: none; }
.logo-wall .tile:nth-last-child(-n+6) { border-bottom: none; }
.logo-wall .tile .brand { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--color-text); letter-spacing: -0.01em; line-height: 1.15; opacity: 0.78; transition: opacity var(--motion-base) var(--ease-standard); text-align: center; max-width: 100%; overflow-wrap: break-word; }
.logo-wall .tile:hover .brand { opacity: 1; }
.logo-wall .tile .brand.sans { font-family: var(--font-body); font-weight: 700; letter-spacing: -0.005em; }
.logo-wall .tile .brand.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.logo-wall .tile .brand.italic { font-style: italic; font-weight: 500; }
.logo-wall .tile .brand.cap { text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; font-weight: 700; }
.logo-wall .tile .brand .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green-100); margin: 0 1px 2px; vertical-align: middle; }
.logo-wall .tile .brand .amp { color: var(--color-text-subtle); font-weight: 400; }
/* Logo tiles. The wall keeps the same 6-col / 2:1 aspect-ratio grid as the
   text version; img assets are clamped to a consistent visual height regardless
   of their intrinsic dimensions so a tall square mark (e.g. NARPM) and a wide
   wordmark (e.g. Propertymark) sit visually balanced. Same opacity-on-hover
   treatment as the .brand text rows. */
.logo-wall .tile img { max-height: 56px; max-width: 100%; width: auto; height: auto; object-fit: contain; opacity: 0.82; transition: opacity var(--motion-base) var(--ease-standard); }
.logo-wall .tile:hover img { opacity: 1; }

.int-support { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.int-support .card { padding: 28px 26px; background: var(--off-white-60); border: 1px solid var(--color-border-subtle); border-radius: 14px; display: flex; flex-direction: column; gap: 12px; }
.int-support .card .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--green-20); color: #1E7A2B; display: flex; align-items: center; justify-content: center; }
.int-support .card .ic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.int-support .card h4 { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.3; letter-spacing: -0.005em; }
.int-support .card p { font-size: 14px; color: var(--color-text-muted); line-height: 1.5; }

.int-cta { margin-top: 40px; display: flex; justify-content: center; }

.pt-assoc { padding: 104px 0; background: var(--off-white-60); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.pt-assoc .logo-wall { background: #fff; }
/* Industry recognition wall sits taller than the integrations wall — extra
   vertical breathing room around each accreditation mark so officially-licensed
   logos (RICS Tech Partner, Propertymark Industry Supplier) read with the
   gravitas they're designed for. Padding bumps and a taller aspect-ratio on
   the tiles widen the gap between rows visibly without leaving 1x logos
   floating in negative space (img max-height stays at 56px / 44px mobile). */
.pt-assoc .logo-wall .tile { aspect-ratio: 16/10; padding: 36px 28px; }
@media (max-width: 1020px) {
  .pt-assoc .logo-wall .tile { aspect-ratio: 16/10; padding: 32px 22px; }
}
@media (max-width: 768px) {
  .pt-assoc .logo-wall .tile { aspect-ratio: 16/10; padding: 24px 14px; }
}
.assoc-support { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.assoc-support .row { padding: 22px 24px; background: #fff; border: 1px solid var(--color-border-subtle); border-radius: 14px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.assoc-support .row .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--green-20); color: #1E7A2B; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.assoc-support .row .ic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.assoc-support .row strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.3; margin-bottom: 4px; }
.assoc-support .row span { font-size: 13.5px; color: var(--color-text-muted); line-height: 1.5; }

.pt-service { padding: 104px 0; }
.pt-service-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: start; }
.pt-service-grid h2 { font-family: var(--font-display); font-weight: 600; font-size: 40px; letter-spacing: -0.02em; line-height: 1.1; margin-top: 16px; }
.pt-service-grid p.lead { font-size: 16.5px; color: var(--color-text-muted); line-height: 1.6; margin-top: 18px; max-width: 440px; }
.svc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.svc-tile { padding: 26px 24px; background: #fff; border: 1px solid var(--color-border); border-radius: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 150px; transition: all var(--motion-base) var(--ease-standard); }
.svc-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--green-100); }
.svc-tile .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--green-20); color: #1E7A2B; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.svc-tile .ic svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.svc-tile h4 { font-family: var(--font-display); font-weight: 600; font-size: 16px; line-height: 1.25; letter-spacing: -0.005em; }
.svc-tile p { font-size: 13.5px; color: var(--color-text-muted); line-height: 1.5; }

.pt-why { padding: 0; }
.pt-why-inner { padding: 96px 72px; background: var(--gradient-deep); color: #fff; position: relative; overflow: hidden; border-radius: 0; }
.pt-why-inner::before { content: ''; position: absolute; inset: 0; background:
  radial-gradient(900px 400px at 80% 0%, rgba(97,206,112,0.14), transparent 55%),
  radial-gradient(700px 320px at 10% 100%, rgba(97,206,112,0.06), transparent 55%);
  pointer-events: none; }
.pt-why-grid { position: relative; display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: center; }
.pt-why-grid .kicker { color: var(--green-100); letter-spacing: 0.1em; }
.pt-why-grid h2 { font-family: var(--font-display); font-weight: 600; font-size: 44px; line-height: 1.08; letter-spacing: -0.025em; color: #fff; margin-top: 18px; margin-bottom: 18px; }
.pt-why-grid p.lead { font-size: 17px; color: rgba(255,255,255,0.78); line-height: 1.6; max-width: 500px; }
.pt-why-list { display: flex; flex-direction: column; gap: 12px; }
.pt-why-list .row { padding: 18px 22px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; }
.pt-why-list .row .ic { width: 32px; height: 32px; border-radius: 8px; background: rgba(127,212,142,0.15); color: #7FD48E; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pt-why-list .row .ic svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.pt-why-list .row strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 15px; color: #fff; line-height: 1.3; margin-bottom: 4px; }
.pt-why-list .row span { font-size: 13.5px; color: rgba(255,255,255,0.65); line-height: 1.5; }

.pt-final { padding: 104px 0; background: #fff; border-top: 1px solid var(--color-border); }
.pt-final .inner { text-align: center; max-width: 720px; margin: 0 auto; }
.pt-final h2 { font-family: var(--font-display); font-weight: 600; font-size: 44px; line-height: 1.08; letter-spacing: -0.025em; margin: 20px 0 18px; }
.pt-final p { font-size: 17px; color: var(--color-text-muted); line-height: 1.55; margin-bottom: 32px; }
.pt-final .ctas { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

@media (max-width: 1020px) {
  .pt-hero h1 { font-size: 48px; }
  .pt-head { grid-template-columns: 1fr; gap: 24px; }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .logo-wall .tile { border-right: 1px solid var(--color-border-subtle); }
  .logo-wall .tile:nth-child(6n) { border-right: 1px solid var(--color-border-subtle); }
  .logo-wall .tile:nth-child(3n) { border-right: none; }
  .logo-wall .tile:nth-last-child(-n+6) { border-bottom: 1px solid var(--color-border-subtle); }
  .logo-wall .tile:nth-last-child(-n+3) { border-bottom: none; }
  .int-support, .assoc-support { grid-template-columns: 1fr; }
  .pt-service-grid, .pt-why-grid { grid-template-columns: 1fr; gap: 40px; }
  .pt-why-inner { padding: 64px 36px; }
}
@media (max-width: 768px) {
  /* Phones — both .logo-wall instances (Integrations + Industry recognition)
   * get the same 2-column layout. Bumped from 640px so iPhone 12 Pro at
   * 390px and the 667px mid-range no longer stay at 3-col, where the longer
   * recognition labels ("Open Property Data", "Crown Commercial") rendered
   * cramped against the tile borders. */
  .logo-wall { grid-template-columns: repeat(2, 1fr); }
  /* Defeat min-width: auto on grid items so a long unbreakable brand
   * label ("Propertymark", "Commercial", "PropTech") can't push the
   * track wider than 1fr — which previously forced the entire grid past
   * the viewport edge, clipping the right column's labels. */
  .logo-wall, .logo-wall .tile { min-width: 0; }
  .logo-wall .tile { padding: 14px 12px; }
  .logo-wall .tile .brand { font-size: 16px; word-break: break-word; }
  .logo-wall .tile .brand.mono,
  .logo-wall .tile .brand.cap { font-size: 13px; }
  /* Tighter padding at this breakpoint shrinks the available content box, so
     drop the logo cap proportionally — keeps tiles balanced on phones. */
  .logo-wall .tile img { max-height: 44px; }
  /* Reset the every-3rd no-right-border rule from the 1020px tablet block,
   * then apply the every-2nd no-right-border rule for the new 2-col layout.
   * Same selector ordering shared by both grids — no per-section overrides. */
  .logo-wall .tile:nth-child(3n) { border-right: 1px solid var(--color-border-subtle); }
  .logo-wall .tile:nth-child(2n) { border-right: none; }
  /* Bottom-border cleanup. The 1020px block sets :nth-last-child(-n+3) to
   * border-bottom: none — correct for a 3-col grid where the last 3 tiles
   * are the last row. In the 2-col layout that rule misfires: it strips the
   * bottom border from the rightmost tile of the second-to-last row. Reset
   * it so only the actual last row (last 2 tiles) loses its bottom border. */
  .logo-wall .tile:nth-last-child(-n+3) { border-bottom: 1px solid var(--color-border-subtle); }
  .logo-wall .tile:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 640px) {
  .pt-hero h1, .pt-head h2, .pt-service-grid h2, .pt-why-grid h2, .pt-final h2 { font-size: 32px; }
  .svc-list { grid-template-columns: 1fr; }
}
