:root {
  /* ElevenLabs-inspired warm eggshell palette */
  --bg: #FDFCFC;                       /* eggshell page background */
  --surface: #FFFFFF;                   /* pure white card surfaces */
  --surface-2: #F5F3F1;                 /* warm stone */
  --surface-3: #EDEBE8;                 /* slightly deeper stone */
  --ink: #000000;                       /* pure black */
  --ink-2: rgb(68, 64, 59);             /* warm muted brown */
  --ink-3: rgb(119, 113, 105);          /* lighter warm muted */
  --ink-4: rgb(165, 159, 151);          /* lightest warm */
  --rule: rgba(0, 0, 0, 0.075);
  --rule-strong: rgba(0, 0, 0, 0.15);
  /* No saturated accent in Eleven palette, they use weight contrast & blacks.
   * We keep a very restrained "marker" accent for hover/focus only. */
  --accent: #000000;
  --accent-soft: rgba(0, 0, 0, 0.05);
  --gold: oklch(0.78 0.13 86);
  --green: oklch(0.55 0.13 145);
  --chip: rgba(0, 0, 0, 0.04);

  --font-display: "Crimson Pro", "Source Serif 4", Georgia, serif;
  --font-body:    "Hanken Grotesk", -apple-system, system-ui, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", monospace;
}

html[data-theme="dark"] {
  --bg: #0A0908;
  --surface: #14110F;
  --surface-2: #1A1614;
  --surface-3: #211C19;
  --ink: #FAF8F6;
  --ink-2: rgb(189, 184, 178);
  --ink-3: rgb(135, 130, 124);
  --ink-4: rgb(88, 84, 79);
  --rule: rgba(255, 255, 255, 0.10);
  --rule-strong: rgba(255, 255, 255, 0.18);
  --accent: #FAF8F6;
  --accent-soft: rgba(255, 255, 255, 0.06);
  --chip: rgba(255, 255, 255, 0.04);
}

html, body { margin: 0; padding: 0; }
html { overflow-y: scroll; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }

#root { position: relative; z-index: 1; }
body.ps-home #root[aria-hidden="true"] {
  visibility: hidden;
}
::selection { background: var(--ink); color: var(--bg); }
html { scroll-behavior: smooth; }
a { color: inherit; }
h1, h2, h3 { letter-spacing: 0 !important; }

.ps-boot {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden auto;
  background: var(--bg);
}

html.ps-ready .ps-boot {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.ps-fallback {
  min-height: 100vh;
  background: var(--bg);
}

.ps-fallback-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px 48px;
  border-bottom: 1px solid var(--rule);
}

.ps-fallback-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  justify-self: start;
}

.ps-fallback-logo span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
}

.ps-fallback-logo strong {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
}

.ps-fallback-nav nav {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-self: center;
}

.ps-fallback-nav nav a {
  padding: 8px 14px;
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
}

.ps-fallback-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-self: end;
}

.ps-fallback-icon,
.ps-fallback-theme {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-2);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 9px;
  text-decoration: none;
  padding: 0;
}

.ps-fallback-icon svg,
.ps-fallback-theme svg {
  fill: currentColor;
}

.ps-fallback-theme svg {
  fill: none;
}

.ps-fallback-cta,
.ps-fallback-primary,
.ps-fallback-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.ps-fallback-cta {
  padding: 10px 18px;
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
}

.ps-fallback-hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 70px 48px 96px;
}

.ps-fallback-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border: 1px solid var(--rule-strong);
  background: var(--chip);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  margin-bottom: 28px;
}

.ps-fallback-eyebrow span {
  width: 6px;
  height: 6px;
  background: var(--green);
  box-shadow: 0 0 0 3px oklch(0.55 0.13 145 / 0.18);
}

.ps-fallback-hero h1 {
  max-width: 1180px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 92px;
  font-weight: 400;
  line-height: 0.98;
  text-wrap: balance;
}

.ps-fallback-hero h1 span,
.ps-fallback-hero h1 em {
  display: block;
}

.ps-fallback-hero h1 em {
  font-style: italic;
  font-weight: 400;
}

.ps-fallback-hero p {
  max-width: 660px;
  margin: 32px 0 36px;
  color: var(--ink-2);
  font-size: 19px;
  line-height: 1.5;
  text-wrap: pretty;
}

.ps-fallback-buttons {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.ps-fallback-primary {
  padding: 13px 22px;
  background: var(--ink);
  color: var(--bg);
}

.ps-fallback-secondary {
  padding: 13px 22px;
  border: 1px solid var(--rule-strong);
  color: var(--ink);
}

.ps-fallback-buttons > span {
  margin-left: 10px;
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.ps-nature-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100vh - 86px);
  padding: 76px 48px 0;
  border-bottom: 1px solid var(--rule);
  background: #d8ecf2;
}

.ps-fallback-hero.ps-nature-hero {
  max-width: none;
  margin: 0;
}

.ps-fallback-hero .ps-hero-title {
  max-width: 1120px;
  margin: 0 auto;
  font-size: 96px;
}

.ps-fallback-hero .ps-hero-sub {
  max-width: 760px;
  margin: 30px auto 34px;
  color: rgba(25, 29, 28, 0.78);
  font-size: 20px;
}

.ps-nature-bg,
.ps-nature-grid,
.ps-nature-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ps-nature-bg {
  z-index: -3;
  background-image: url("assets/hero-nature-bg.jpg?v=20260601-gemini");
  background-size: cover;
  background-position: center 58%;
  filter: blur(11px) saturate(1.14) contrast(1.03);
  transform: scale(1.055);
}

.ps-nature-grid {
  z-index: -2;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 1px, transparent 1px);
  background-size: 86px 86px;
  -webkit-mask-image: linear-gradient(90deg, #000 0 21%, transparent 39% 61%, #000 79% 100%);
  mask-image: linear-gradient(90deg, #000 0 21%, transparent 39% 61%, #000 79% 100%);
}

.ps-nature-veil {
  z-index: -1;
  background:
    radial-gradient(circle at 50% 20%, rgba(253, 252, 252, 0.48) 0 16%, rgba(253, 252, 252, 0.22) 40%, rgba(253, 252, 252, 0.03) 70%),
    linear-gradient(180deg, rgba(204, 233, 242, 0.26) 0%, rgba(253, 252, 252, 0.05) 38%, rgba(10, 49, 42, 0.32) 100%);
}

.ps-nature-content {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}

.ps-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: rgba(253, 252, 252, 0.50);
  color: rgba(34, 34, 31, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  margin-bottom: 28px;
  white-space: nowrap;
}

.ps-hero-eyebrow span {
  width: 6px;
  height: 6px;
  background: var(--green);
  box-shadow: 0 0 0 3px oklch(0.55 0.13 145 / 0.18);
  flex: 0 0 auto;
}

.ps-hero-eyebrow strong {
  min-width: 0;
  font: inherit;
  font-weight: 400;
  letter-spacing: inherit;
}

.ps-hero-title {
  max-width: 1120px;
  margin: 0 auto;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 96px;
  font-weight: 400;
  line-height: 0.98;
  text-wrap: balance;
}

.ps-hero-title span,
.ps-hero-title em {
  display: block;
}

.ps-hero-title em {
  font-style: italic;
  font-weight: 400;
}

.ps-hero-sub {
  max-width: 760px;
  margin: 30px auto 34px;
  color: rgba(25, 29, 28, 0.78);
  font-size: 20px;
  line-height: 1.48;
  text-wrap: pretty;
}

.ps-hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.ps-hero-primary,
.ps-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.ps-hero-primary {
  background: var(--ink);
  color: var(--bg);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.ps-hero-secondary {
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: rgba(253, 252, 252, 0.52);
  color: var(--ink);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.ps-hero-actions > span {
  margin-left: 10px;
  color: rgba(38, 43, 41, 0.72);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.ps-hero-demo-wrap {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 60px auto 0;
  padding-bottom: 74px;
}

.ps-hero-demo-meta,
.ps-hero-demo-foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(22, 28, 27, 0.68);
}

.ps-hero-demo-meta {
  align-items: end;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.48);
}

.ps-hero-demo-card {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 42px 90px -40px rgba(0, 0, 0, 0.54), 0 0 0 1px rgba(255, 255, 255, 0.58);
}

.ps-hero-demo-card > div {
  border: 0 !important;
  box-shadow: none !important;
}

.ps-hero-demo-foot {
  margin-top: 14px;
  color: rgba(22, 28, 27, 0.62);
}

.ps-fallback-demo-card {
  height: 500px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 42px 90px -40px rgba(0, 0, 0, 0.54), 0 0 0 1px rgba(255, 255, 255, 0.58);
}

.ps-fallback-demo-titlebar,
.ps-fallback-demo-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--rule);
}

.ps-fallback-demo-titlebar {
  padding: 12px 16px;
  background: var(--surface-2);
  font-size: 13px;
}

.ps-fallback-demo-titlebar > span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--rule-strong);
}

.ps-fallback-demo-titlebar strong {
  flex: 1;
  margin-left: 6px;
  font-weight: 500;
}

.ps-fallback-demo-titlebar em {
  padding: 2px 6px;
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.15em;
}

.ps-fallback-demo-toolbar {
  padding: 8px 12px;
  color: var(--ink-2);
  font-size: 12px;
}

.ps-fallback-demo-toolbar span {
  min-width: 28px;
}

.ps-fallback-demo-body {
  max-width: 620px;
  margin: 0 auto;
  padding: 36px 56px;
  font-family: var(--font-display);
}

.ps-fallback-demo-body small {
  display: block;
  margin-bottom: 18px;
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.ps-fallback-demo-body h2 {
  margin: 0 0 14px;
  font-size: 30px;
  font-weight: 400;
}

.ps-fallback-demo-body p {
  margin: 0 0 24px;
  color: var(--ink-2);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
}

.ps-fallback-demo-body div {
  height: 10px;
  margin-bottom: 10px;
  background: var(--rule);
}

.ps-fallback-demo-body div:nth-child(5) {
  width: 78%;
}

@media (max-width: 1180px) {
  .ps-hero-title,
  .ps-fallback-hero .ps-hero-title {
    font-size: 82px;
  }

  .ps-hero-demo-wrap {
    max-width: 900px;
  }
}

@media (max-width: 900px) {
  header {
    grid-template-columns: 1fr auto !important;
    gap: 16px !important;
    padding: 18px 24px !important;
  }

  header nav,
  header > div:last-child > a[href="#cta"] {
    display: none !important;
  }

  .ps-fallback-nav {
    grid-template-columns: 1fr auto !important;
    gap: 16px;
    padding: 18px 24px;
  }

  .ps-fallback-nav nav,
  .ps-fallback-cta {
    display: none;
  }

  .ps-fallback-hero {
    padding: 70px 20px 72px;
  }

  .ps-nature-hero,
  .ps-fallback-hero.ps-nature-hero {
    min-height: auto;
    padding-top: 56px !important;
  }

  .ps-hero-title,
  .ps-fallback-hero .ps-hero-title {
    max-width: 720px;
    font-size: 58px !important;
    line-height: 1;
  }

  .ps-hero-sub,
  .ps-fallback-hero .ps-hero-sub {
    max-width: 640px;
    font-size: 18px !important;
  }

  .ps-hero-actions > span {
    width: 100%;
    margin-left: 0;
    text-align: center;
  }

  .ps-hero-demo-wrap {
    max-width: 100%;
    margin-top: 44px;
    padding-bottom: 60px;
  }

  .ps-hero-demo-meta,
  .ps-hero-demo-foot {
    flex-direction: column;
    gap: 6px;
    text-align: left;
  }

  section {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  h1 {
    font-size: 64px !important;
    line-height: 1 !important;
  }

  h2 {
    font-size: 48px !important;
    line-height: 1.06 !important;
  }

  h3 {
    font-size: 34px !important;
    line-height: 1.12 !important;
  }

  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 1.1fr 1fr"],
  [style*="grid-template-columns: 1fr 1.4fr"],
  [style*="grid-template-columns: 1.4fr 1fr"],
  [style*="grid-template-columns: 1fr 1.6fr"],
  [style*="grid-template-columns: 1fr 220px"],
  [style*="grid-template-columns: 2fr 1fr 1fr 1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  [style*="grid-template-columns: 1fr 140px 140px 80px"] {
    grid-template-columns: minmax(0, 1fr) 52px 52px 36px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  [style*="grid-template-columns: 100px 130px 1fr 80px"] {
    grid-template-columns: 1fr !important;
  }

  [style*="display: grid"] > * {
    min-width: 0 !important;
  }

  [style*="padding: 60px 56px"] {
    padding: 36px 20px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  [style*="padding: 8px 14px"] {
    width: 100% !important;
    justify-content: space-between !important;
  }
}

@media (max-width: 520px) {
  header {
    padding: 16px 20px !important;
  }

  header > div:last-child {
    gap: 8px !important;
  }

  section {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  h1 {
    font-size: 52px !important;
  }

  h2 {
    font-size: 40px !important;
  }

  h3 {
    font-size: 28px !important;
  }

  p {
    font-size: 16px !important;
  }

  .ps-nature-hero,
  .ps-fallback-hero.ps-nature-hero {
    padding-top: 44px !important;
  }

  .ps-hero-eyebrow {
    display: flex;
    width: min(100%, 330px);
    max-width: 100%;
    justify-content: center;
    white-space: normal;
    font-size: 10px;
    line-height: 1.45;
    text-align: center;
  }

  .ps-hero-eyebrow strong {
    overflow-wrap: anywhere;
  }

  .ps-hero-title,
  .ps-fallback-hero .ps-hero-title {
    width: min(100%, 342px);
    font-size: 36px !important;
    line-height: 1.04 !important;
    overflow-wrap: normal;
  }

  .ps-hero-sub,
  .ps-fallback-hero .ps-hero-sub {
    font-size: 16px !important;
  }

  .ps-hero-actions {
    align-items: stretch;
  }

  .ps-hero-primary,
  .ps-hero-secondary {
    width: 100%;
    justify-content: center;
  }

  .ps-hero-demo-wrap {
    margin-top: 34px;
    padding-bottom: 48px;
  }

  .ps-hero-demo-card > div,
  .ps-fallback-demo-card {
    height: 430px !important;
  }

  .ps-editor-title-strip {
    min-width: 0;
  }

  .ps-editor-file-title {
    min-width: 0;
    font-size: 12px !important;
    line-height: 1.25 !important;
    overflow-wrap: anywhere;
  }

  .ps-editor-version,
  .ps-editor-region-badge,
  .ps-editor-collaborators,
  .ps-editor-save-state {
    display: none !important;
  }

  [style*="white-space: nowrap"] {
    white-space: normal !important;
  }

  [style*="font-family: var(--font-mono)"] {
    overflow-wrap: anywhere !important;
  }
}
