/* Platform page (/features). Every class is prefixed `pf-` because Next keeps
   route stylesheets loaded after client navigation. Shared `.lx-*` and `.mf-*`
   classes come from site.css; this file only adds the page's own pieces. */

/* ---------- Hero: centred headline with a few floating fragments ---------- */
.lx-page-hero.pf-hero {
  min-height: max(680px, 100svh);
  padding-bottom: 150px;
}
.pf-floats {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.pf-float {
  position: absolute;
  transform: rotate(var(--tilt));
}
.pf-float-tl {
  top: 17%;
  left: max(-24px, 50% - 700px);
}
.pf-float-tr {
  top: 15%;
  right: max(-28px, 50% - 690px);
}
.pf-float-bl {
  bottom: 9%;
  left: max(24px, 50% - 620px);
}
.pf-float-br {
  bottom: 14%;
  right: max(24px, 50% - 610px);
}
@media (prefers-reduced-motion: no-preference) {
  .pf-float > * {
    animation: lx-fade-rise 1.1s var(--lx-ease) calc(0.7s + 0.12s * var(--o)) both;
  }
}
.pf-source-chip,
.pf-float-prompt,
.pf-float-pill {
  margin: 0;
  background: rgb(255 255 255 / 0.95);
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.06),
    0 24px 60px -24px rgb(10 14 30 / 0.55);
  color: #16161c;
  letter-spacing: -0.03em;
  text-align: left;
}
.pf-source-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px 14px 14px;
  border-radius: 16px;
  font-size: 18px;
}
.pf-source-chip span,
.pf-float-pill span {
  width: 36px;
  height: 36px;
  padding: 7px;
  flex: none;
  border-radius: 50%;
  background: #eef0f6;
  color: #3a3f52;
}
.pf-source-chip svg,
.pf-float-pill svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pf-float-prompt {
  max-width: 400px;
  padding: 20px 26px;
  border-radius: 26px;
  font-size: 24px;
  line-height: 1.25;
}
.pf-float-prompt b {
  font-weight: 450;
  color: #3a55d6;
  margin-right: 0.3em;
}
.pf-float-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 26px 14px 14px;
  border-radius: 999px;
  font-size: 21px;
  white-space: nowrap;
}
.pf-float-pill span {
  background: #fdf0dd;
  color: #a4620c;
}
.pf-apptile {
  list-style: none;
  margin: 0;
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(2, 56px);
  gap: 18px;
  border-radius: 24px;
  background: rgb(255 255 255 / 0.95);
  box-shadow: 0 24px 60px -24px rgb(10 14 30 / 0.55);
}
.pf-apptile li {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #f3f4f8;
}
.pf-apptile img {
  width: 32px;
  height: 32px;
}

/* ---------- Product rows ---------- */
.pf-work {
  padding-block: 150px 20px;
}
.pf-work > .lx-section-head {
  margin-bottom: 110px;
}
.pf-row {
  scroll-margin-top: 96px;
}

/* Cell: one spreadsheet cell being edited. */
.pf-cell {
  width: min(460px, 100%);
  display: grid;
  gap: 14px;
}
.pf-cell-formula {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 14px 20px;
  border-radius: 16px;
  background: rgb(255 255 255 / 0.95);
  box-shadow: 0 18px 50px -24px rgb(20 40 20 / 0.4);
  font:
    22px / 1.2 ui-monospace,
    "SFMono-Regular",
    Menlo,
    monospace;
  letter-spacing: 0;
  color: #16161c;
}
.pf-cell-formula i {
  color: #8a8a93;
}
.pf-cell-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  border-radius: 16px;
  overflow: hidden;
  background: rgb(255 255 255 / 0.55);
  font-size: 30px;
  letter-spacing: -0.03em;
}
.pf-cell-grid span {
  min-height: 64px;
  border: 1px solid rgb(255 255 255 / 0.6);
}
.pf-cell-grid .head {
  display: grid;
  place-items: center;
  min-height: 48px;
  font-size: 16px;
  color: #3d5a3a;
}
.pf-cell-grid .pf-cell-live {
  display: grid;
  place-items: center;
  min-height: 96px;
  background: #fff;
  color: #11734a;
  box-shadow: inset 0 0 0 2.5px #1c8a5a;
}
@media (prefers-reduced-motion: no-preference) {
  .pf-cell.motion-visible .pf-cell-live {
    animation: pf-pulse 4.8s var(--lx-ease) infinite;
  }
}
@keyframes pf-pulse {
  0%, 70%, 100% { box-shadow: inset 0 0 0 2.5px #1c8a5a; }
  80% { box-shadow: inset 0 0 0 2.5px #1c8a5a, 0 0 0 8px rgb(28 138 90 / 0.18); }
}

/* ---------- Output cards ---------- */
.pf-outputs {
  padding-block: 100px 170px;
}
.pf-output-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pf-output-panel {
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  display: grid;
  place-items: center;
  padding: 28px;
}
.pf-output-panel .mf-stack {
  height: 100%;
}
.pf-output-panel .mf-stack li,
.pf-output-panel .mf-bigpill {
  font-size: 20px;
}
.pf-output h3 {
  margin-top: 24px;
  font-size: 22px;
  letter-spacing: -0.035em;
  font-weight: 400;
}
.pf-output p {
  margin-top: 8px;
  max-width: 380px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--lx-muted);
}
.pf-file {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 26px 18px 18px;
  border-radius: 20px;
  background: rgb(255 255 255 / 0.95);
  box-shadow: 0 18px 50px -22px rgb(90 30 10 / 0.45);
}
.pf-file-icon {
  width: 52px;
  height: 52px;
  padding: 11px;
  border-radius: 14px;
  background: #fbe7dc;
  color: #b8472a;
}
.pf-file-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pf-file p {
  display: grid;
  gap: 2px;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: #16161c;
}
.pf-file p span {
  font-size: 15px;
  color: #6b6b75;
}

/* ---------- Dark band: capabilities and suite ---------- */
.pf-dark {
  background: var(--lx-black);
  color: #fafafa;
  padding-block: 160px 180px;
}
.lx .pf-dark .lx-sub {
  margin-inline: 0;
  color: rgb(255 255 255 / 0.6);
}
.pf-acc {
  display: grid;
  grid-template-columns: minmax(280px, 506px) minmax(0, 754px);
  justify-content: space-between;
  gap: 60px;
  align-items: start;
}
.pf-acc-row {
  border-top: 1px solid rgb(255 255 255 / 0.16);
}
.pf-acc-row:last-child {
  border-bottom: 1px solid rgb(255 255 255 / 0.16);
}
.pf-acc-row h3 {
  font-size: inherit;
}
.pf-acc-row button {
  width: 100%;
  padding: 26px 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: -0.05em;
  color: rgb(255 255 255 / 0.45);
  transition: color 0.4s var(--lx-ease);
}
.pf-acc-row button:hover,
.pf-acc-row.open button {
  color: #fafafa;
}
.pf-acc-row button:focus-visible {
  outline: 2px solid #fafafa;
  outline-offset: 4px;
  border-radius: 4px;
}
.pf-acc-row.open button {
  padding-bottom: 14px;
}
.pf-acc-row .lx-countdown {
  max-width: 400px;
  margin-bottom: 14px;
  color: rgb(255 255 255 / 0.5);
}
.pf-acc-row p {
  max-width: 400px;
  padding-bottom: 28px;
  font-size: 15px;
  line-height: 1.5;
  color: rgb(255 255 255 / 0.6);
}
.pf-acc-stage {
  position: sticky;
  top: 96px;
}
.pf-acc-field {
  aspect-ratio: 754 / 623;
  border-radius: 16px;
  display: grid;
  place-items: center;
  padding: 40px;
}
.pf-acc-field:has(.mf-apps) {
  place-items: end center;
  padding-bottom: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .pf-acc-scene:not([hidden]) .pf-acc-field > * {
    animation: lx-fade-rise 0.86s var(--lx-ease) both;
  }
}

/* Policy switch: allow, ask, block. */
.pf-switch {
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.7);
  box-shadow: 0 18px 50px -22px rgb(90 30 10 / 0.45);
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.035em;
}
.pf-switch span {
  padding: 14px 30px;
  border-radius: 999px;
  color: #6b5a52;
}
.pf-switch .on {
  background: #fff;
  color: #16161c;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.1);
}

/* Model picker. */
.pf-picker {
  width: min(380px, 100%);
  padding: 12px;
  border-radius: 24px;
  background: rgb(255 255 255 / 0.95);
  box-shadow: 0 18px 50px -22px rgb(20 40 90 / 0.45);
}
.pf-picker ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 4px;
}
.pf-picker li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: #16161c;
}
.pf-picker li.on {
  background: #f1f3f8;
}
.pf-picker-check,
.pf-picker-lock {
  width: 22px;
  height: 22px;
  color: #3a55d6;
}
.pf-picker-check svg,
.pf-picker-lock svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pf-picker > p {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px 6px;
  font-size: 15px;
  color: #6b6b75;
}
.pf-picker-lock {
  width: 18px;
  height: 18px;
  color: #6b6b75;
}

/* Phone with one notification. */
.pf-phone {
  width: 250px;
  height: 330px;
  align-self: end;
  margin-bottom: -40px;
  padding: 18px 16px;
  border-radius: 40px 40px 0 0;
  background: rgb(250 250 252 / 0.96);
  box-shadow:
    0 0 0 8px #111,
    0 30px 60px rgb(0 0 0 / 0.3);
  display: grid;
  align-content: start;
  gap: 16px;
}
.pf-acc-field:has(.pf-phone) {
  overflow: hidden;
  padding-bottom: 0;
}
.pf-phone-notch {
  justify-self: center;
  width: 80px;
  height: 22px;
  border-radius: 999px;
  background: #111;
}
.pf-phone-app {
  padding: 8px 6px 0;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: #16161c;
}
.pf-phone-note {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px -14px rgb(0 0 0 / 0.3);
  font-size: 16px;
  color: #6b6b75;
}
.pf-phone-note b {
  font-weight: 500;
  font-size: 19px;
  color: #16161c;
}
@media (prefers-reduced-motion: no-preference) {
  .pf-phone-note.motion-visible {
    animation: pf-notify 7s var(--lx-ease) infinite;
  }
}
@keyframes pf-notify {
  0% { opacity: 0; transform: translateY(-16px) scale(0.96); }
  8%, 88% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-6px); }
}

/* Suite triptych */
.pf-suite {
  margin-top: 180px;
}
.pf-suite h2 {
  max-width: 620px;
  margin-bottom: 88px;
}
.pf-suite-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pf-suite-card {
  min-height: clamp(460px, 44vw, 640px);
  border-radius: 8px;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  text-align: center;
  padding: 48px 32px;
  color: #fff;
}
.pf-suite-lockup {
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(24px, 2.2vw, 30px);
  letter-spacing: -0.04em;
}
.pf-suite-lockup img {
  height: 1.05em;
  width: auto;
  filter: invert(1);
}
.pf-suite-card p {
  grid-row: 3;
  align-self: end;
  max-width: 280px;
  font-size: 15px;
  line-height: 1.45;
  color: rgb(255 255 255 / 0.88);
}
@media (prefers-reduced-motion: no-preference) {
  .pf-suite-card,
  .pf-output-panel {
    transition: transform 0.86s var(--lx-ease);
  }
  .pf-suite-card:hover,
  .pf-output:hover .pf-output-panel {
    transform: translateY(-4px);
  }
}

/* ---------- Ownership ---------- */
.pf-own {
  padding-block: 170px 150px;
}
.pf-own-head h2,
.pf-own-head p {
  max-width: 860px;
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.04em;
}
.pf-own-head p {
  color: #9a9a9a;
}
.pf-own-list {
  margin-top: 110px;
}
.pf-own-list article {
  display: grid;
  grid-template-columns: 1fr minmax(240px, 330px);
  gap: 24px 48px;
  align-items: start;
  padding-block: 44px;
  border-top: 1px solid #e5e5e5;
}
.pf-own-list h3 {
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.pf-own-list p {
  font-size: 17px;
  line-height: 1.35;
  color: #777;
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .pf-float-tl,
  .pf-float-tr {
    display: none;
  }
}
@media (max-width: 900px) {
  .lx-page-hero.pf-hero {
    min-height: 0;
    padding-bottom: 72px;
  }
  .pf-floats {
    position: relative;
    inset: auto;
    order: 2;
    display: grid;
    justify-items: center;
    gap: 18px;
    margin-top: 48px;
    padding-inline: var(--lx-gutter);
  }
  .pf-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .pf-float {
    position: static;
  }
  .pf-float-prompt {
    font-size: 20px;
    max-width: 330px;
  }
  .pf-float-pill {
    font-size: 17px;
    white-space: normal;
  }
  .pf-work {
    padding-top: 96px;
  }
  .pf-work > .lx-section-head {
    margin-bottom: 64px;
  }
  .pf-row .lx-panel {
    aspect-ratio: auto;
    min-height: 360px;
  }
  .pf-output-grid,
  .pf-suite-grid {
    grid-template-columns: 1fr;
  }
  .pf-acc {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .pf-acc-stage {
    position: static;
  }
  .pf-acc-field {
    aspect-ratio: auto;
    min-height: 380px;
    padding: 32px 16px;
  }
  .pf-suite-card {
    min-height: 420px;
  }
  .pf-own-list article {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .pf-outputs,
  .pf-own {
    padding-block: 96px;
  }
  .pf-dark {
    padding-block: 96px 110px;
  }
  .pf-suite {
    margin-top: 110px;
  }
  .pf-suite h2 {
    margin-bottom: 48px;
  }
  .pf-own-list {
    margin-top: 64px;
  }
  .pf-own-list article {
    padding-block: 32px;
  }
  .pf-output-panel {
    padding: 20px;
  }
  .pf-cell-formula {
    font-size: 18px;
  }
  .pf-cell-grid {
    font-size: 24px;
  }
  .pf-switch {
    font-size: 19px;
  }
  .pf-switch span {
    padding: 10px 18px;
  }
  .pf-picker li {
    font-size: 19px;
  }
}
.pf-cell-glyph {
  width: 28px;
  height: 28px;
  padding: 5px;
  border-radius: 8px;
  background: #16835a;
  color: #fff;
  flex: none;
}
.pf-cell-glyph svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
