/* RoleWright public pages. Static CSS, no framework dependency. */

:root {
  --ink: #151816;
  --ink-soft: #4f5751;
  --muted: #737d75;
  --paper: #fbfaf6;
  --paper-warm: #f2efe7;
  --surface: #ffffff;
  --surface-tint: #f7f4ec;
  --line: #ded9ce;
  --line-strong: #c9ded1;
  --emerald: #0f7a53;
  --emerald-deep: #0a4d37;
  --emerald-soft: #e7f5ec;
  --cobalt: #2457d6;
  --cobalt-soft: #e8efff;
  --coral: #df6b4f;
  --amber: #b87a1d;
  --white: #ffffff;
  --radius: 8px;
  --max-w: 1180px;
  --shadow-sm: 0 1px 2px rgb(21 24 22 / 0.06);
  --shadow-md: 0 14px 38px rgb(21 24 22 / 0.12);
  --font-sans: "Geist Variable", ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  margin-bottom: 0.7rem;
  font-size: 4.9rem;
  font-weight: 760;
}

h2 {
  margin-bottom: 0.75rem;
  font-size: 2.45rem;
  font-weight: 720;
}

h3 {
  margin-bottom: 0.55rem;
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Top navigation */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgb(251 250 246 / 0.88);
  border-bottom: 1px solid rgb(222 217 206 / 0.72);
  backdrop-filter: blur(16px) saturate(130%);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 740;
  color: var(--ink);
}

.brand:hover,
.topnav a:hover {
  text-decoration: none;
}

.logo {
  width: 43px;
  height: 29px;
  border-radius: 7px;
  background: var(--white);
  object-fit: contain;
  padding: 2px;
  box-shadow: inset 0 0 0 1px rgb(10 77 55 / 0.08);
}

.topnav {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  min-width: 0;
}

.topnav a:not(.btn) {
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 560;
}

.topnav a:not(.btn):hover {
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 42px;
  padding: 0 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 680;
  line-height: 1;
  white-space: nowrap;
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-sm {
  min-height: 36px;
  padding: 0 0.85rem;
  font-size: 0.9rem;
}

.btn-lg {
  min-height: 48px;
  padding: 0 1.25rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--emerald);
  color: var(--white);
  box-shadow: 0 10px 24px rgb(15 122 83 / 0.18);
}

.btn-primary:hover {
  background: var(--emerald-deep);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-ghost:hover {
  border-color: var(--line-strong);
  background: var(--emerald-soft);
}

.btn-glass {
  background: rgb(255 255 255 / 0.12);
  color: var(--white);
  border-color: rgb(255 255 255 / 0.34);
  backdrop-filter: blur(12px);
}

.btn-glass:hover {
  background: rgb(255 255 255 / 0.2);
}

/* Hero */
.hero-shell {
  position: relative;
  min-height: 74svh;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgb(8 20 15 / 0.88) 0%, rgb(8 20 15 / 0.68) 37%, rgb(8 20 15 / 0.1) 74%),
    linear-gradient(0deg, rgb(8 20 15 / 0.72) 0%, rgb(8 20 15 / 0.06) 42%),
    url("/landing/rolewright-hero-workspace.webp") center / cover no-repeat;
  transform: scale(1.01);
}

.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(360px, 0.86fr);
  align-items: end;
  gap: 2.5rem;
  padding-top: 5.2rem;
  padding-bottom: 3rem;
}

.hero-copy {
  max-width: 610px;
  padding-bottom: 2.8rem;
}

.kicker,
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 1rem;
  padding: 0 0.7rem;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kicker {
  color: #dff8ec;
  background: rgb(255 255 255 / 0.13);
  border: 1px solid rgb(255 255 255 / 0.18);
}

.hero-lead {
  max-width: 560px;
  margin-bottom: 0.85rem;
  font-size: 1.55rem;
  line-height: 1.25;
  font-weight: 660;
}

.hero-body {
  max-width: 590px;
  margin-bottom: 1.55rem;
  color: rgb(255 255 255 / 0.78);
  font-size: 1.08rem;
}

.cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.45rem;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 0.7rem;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.1);
  color: rgb(255 255 255 / 0.82);
  font-size: 0.84rem;
  font-weight: 620;
  backdrop-filter: blur(10px);
}

.demo-player {
  position: absolute;
  top: 2.85rem;
  right: -6.5rem;
  z-index: 4;
  display: none;
  width: min(44vw, 760px);
  height: min(25vw, 390px);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.2);
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.92);
  box-shadow: 0 22px 70px rgb(0 0 0 / 0.32);
  transform: perspective(1400px) rotateY(-1.4deg) rotateX(0.4deg);
  transform-origin: center center;
}

.demo-player.is-visible {
  display: block;
}

.demo-player:hover {
  text-decoration: none;
}

.demo-player img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.demo-close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgb(10 77 55 / 0.82);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 760;
  line-height: 1;
}

.demo-close:hover {
  text-decoration: none;
  background: var(--emerald-deep);
}

.demo-label {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 2;
  min-height: 28px;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: rgb(10 77 55 / 0.82);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 720;
}

.play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.9);
  transform: translate(-50%, -50%);
  box-shadow: 0 12px 30px rgb(0 0 0 / 0.28);
}

.play-button::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 18px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 16px solid var(--emerald-deep);
}

.demo-bar {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 2;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.28);
}

.demo-bar span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: var(--white);
}

/* Sections */
.section {
  padding: 4.6rem 0;
}

.section-intro {
  background: var(--paper);
  padding-top: 2rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
  text-align: center;
}

.section-heading p,
.proof-layout p {
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.eyebrow {
  color: var(--emerald-deep);
  background: var(--emerald-soft);
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.benefit,
.metrics div {
  border: 0;
  border-radius: var(--radius);
  box-shadow:
    0 9px 18px rgb(21 24 22 / 0.12),
    0 2px 5px rgb(21 24 22 / 0.08);
}

.plan {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.benefit {
  min-height: 255px;
  padding: 1.35rem;
}

.benefit:nth-child(1) {
  background: #e7f5ec;
}

.benefit:nth-child(2) {
  background: #e8efff;
}

.benefit:nth-child(3) {
  background: #ffede8;
}

.benefit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 1.35rem;
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.58);
  color: var(--emerald-deep);
  font-size: 0.84rem;
  font-weight: 780;
}

.benefit-icon-blue {
  color: var(--cobalt);
}

.benefit-icon-coral {
  color: #8f321f;
}

.benefit p,
.plan-head p,
.plan li,
.business-info,
footer {
  color: var(--muted);
}

.benefit p {
  color: #566159;
}

.app-proof {
  background: var(--surface-tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1fr);
  gap: 2.25rem;
  align-items: center;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0;
}

.metrics div {
  min-height: 144px;
  padding: 1.15rem;
}

.metrics div:nth-child(1) {
  background: #0f7a53;
}

.metrics div:nth-child(2) {
  background: #2457d6;
}

.metrics div:nth-child(3) {
  background: #df6b4f;
}

.metrics dt {
  margin-bottom: 0.45rem;
  color: var(--white);
  font-size: 2.3rem;
  line-height: 1;
  font-weight: 780;
}

.metrics dd {
  margin: 0;
  color: rgb(255 255 255 / 0.86);
  font-size: 0.92rem;
}

/* Pricing */
.pricing-section {
  background: var(--paper);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 465px;
  padding: 1.35rem;
}

.plan-popular {
  border-color: #b8d8c3;
  box-shadow: 0 18px 44px rgb(15 122 83 / 0.15);
}

.plan-head {
  min-height: 142px;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line);
}

.plan h3 {
  font-size: 1.12rem;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.price strong {
  font-size: 3rem;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-size: 1rem;
  font-weight: 620;
}

.plan ul {
  flex: 1;
  padding: 1.25rem 0 1.4rem;
}

.plan li {
  position: relative;
  padding-left: 1.45rem;
  font-size: 0.96rem;
}

.plan li + li {
  margin-top: 0.65rem;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.33rem;
  width: 15px;
  height: 15px;
  border: 1.7px solid var(--emerald);
  border-radius: 999px;
}

.plan li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.62rem;
  width: 5px;
  height: 3px;
  border-left: 1.7px solid var(--emerald);
  border-bottom: 1.7px solid var(--emerald);
  transform: rotate(-45deg);
}

.ribbon {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: var(--cobalt-soft);
  color: var(--cobalt);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.final-cta {
  padding: 4rem 0;
  background: var(--emerald-deep);
  color: var(--white);
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.final-cta h2 {
  margin-bottom: 0;
}

.final-cta .eyebrow {
  color: #dff8ec;
  background: rgb(255 255 255 / 0.13);
}

/* Business and legal pages */
.business-info {
  padding: 2.3rem 1.5rem 3rem;
  text-align: center;
  font-size: 0.92rem;
}

.business-info p {
  max-width: 760px;
  margin: 0 auto;
}

.business-info a,
.legal-section a {
  color: var(--emerald-deep);
  font-weight: 680;
}

.legal-shell {
  max-width: 900px;
  padding: 4rem 1.5rem;
}

.legal-header {
  margin-bottom: 2rem;
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--line);
}

.legal-header h1 {
  font-size: 3.2rem;
  color: var(--ink);
}

.legal-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.legal-content {
  display: grid;
  gap: 1rem;
}

.legal-section {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.legal-section h2 {
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
  text-align: left;
}

.legal-section h3 {
  margin-top: 1.25rem;
  font-size: 1rem;
}

.legal-section p:last-child,
.legal-section ul:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  padding-left: 1.2rem;
  list-style: disc;
  color: var(--ink-soft);
}

.legal-section li + li {
  margin-top: 0.4rem;
}

.legal-callout {
  background: var(--emerald-soft);
  border-color: #c8e6d1;
}

footer {
  border-top: 1px solid var(--line);
  background: var(--surface-tint);
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.4rem;
  padding-bottom: 1.4rem;
}

footer p {
  margin: 0;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

:focus-visible {
  outline: 3px solid rgb(36 87 214 / 0.45);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .topnav a:not(.btn) {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .hero-copy {
    max-width: 690px;
    padding-bottom: 0;
  }

  .demo-player {
    position: relative;
    top: auto;
    right: auto;
    margin-left: 0;
    width: min(100%, 600px);
    height: 300px;
    margin-top: 1.25rem;
    transform: none;
  }

  .proof-layout,
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .plan {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  h1 {
    font-size: 3.65rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero {
    padding-top: 4rem;
    padding-bottom: 2rem;
  }

  .hero-lead {
    font-size: 1.28rem;
  }

  .benefit-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .benefit,
  .metrics div {
    min-height: 0;
  }

  .final-cta-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .topbar-inner {
    gap: 0.6rem;
    min-height: 62px;
  }

  .brand {
    gap: 0.45rem;
  }

  .brand span {
    display: none;
  }

  .topnav {
    gap: 0.38rem;
  }

  .btn-sm {
    min-height: 34px;
    padding: 0 0.58rem;
    font-size: 0.82rem;
  }

  h1 {
    font-size: 2.8rem;
  }

  h2 {
    font-size: 1.72rem;
  }

  .hero {
    gap: 1.25rem;
    padding-top: 2.2rem;
    padding-bottom: 1.35rem;
  }

  .hero-bg {
    background:
      linear-gradient(90deg, rgb(8 20 15 / 0.94) 0%, rgb(8 20 15 / 0.78) 62%, rgb(8 20 15 / 0.42) 100%),
      linear-gradient(0deg, rgb(8 20 15 / 0.76) 0%, rgb(8 20 15 / 0.08) 45%),
      url("/landing/rolewright-hero-workspace.webp") center / cover no-repeat;
  }

  .hero-body {
    font-size: 1rem;
  }

  .trust-row span {
    min-height: 28px;
    padding: 0 0.6rem;
    font-size: 0.78rem;
  }

  .demo-player img {
    height: 100%;
    aspect-ratio: 16 / 11;
  }

  .demo-player {
    height: 170px;
  }

  .section-intro {
    padding-top: 1.2rem;
  }

  .play-button {
    width: 48px;
    height: 48px;
  }

  .play-button::after {
    left: 19px;
    top: 15px;
    border-top-width: 9px;
    border-bottom-width: 9px;
    border-left-width: 14px;
  }

  .section {
    padding: 3.3rem 0;
  }

  .price strong {
    font-size: 2.45rem;
  }

  .legal-header h1 {
    font-size: 2.4rem;
  }
}
