/* unrigid.ai home: the story. Breathing chapters (hero, the problem, the closing) with big serif
   lines and space; working chapters (tell, made, editor, approve) dense around one real picture
   each; the safety chapter compact and dark. Phone first; fluid with clamp(). */

/* ---- Shared pieces ------------------------------------------------------------------------ */

.chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.75rem;
  font-weight: 520;
}
.private-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff6e3;
  border: 1px solid #efd49b;
  color: #6b4700;
  font-size: 0.8125rem;
  font-weight: 520;
}
.private-badge .dot {
  background: var(--marigold);
}

.bubble {
  max-width: 34rem;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: clamp(0.9375rem, 0.9rem + 0.15vw, 1.0625rem);
  line-height: 1.5;
}
.bubble p {
  margin: 0;
}
.bubble-who {
  display: block;
  margin-bottom: 2px;
  font-size: 0.75rem;
  font-weight: 560;
  color: var(--muted);
}
.bubble-you {
  margin-left: auto;
  background: var(--ink);
  color: var(--paper);
  border-bottom-right-radius: 6px;
}
.bubble-you .bubble-who {
  color: #c9c0b1;
}
.bubble-claude {
  background: var(--white);
  border: 1px solid var(--rule);
  border-bottom-left-radius: 6px;
}

.phone {
  width: 100%;
  max-width: 260px;
  padding: 8px;
  border-radius: 34px;
  background: var(--ink);
  box-shadow: 0 30px 60px -28px rgba(29, 26, 22, 0.5);
}
.phone-screen {
  aspect-ratio: 390 / 844;
  overflow: hidden;
  border-radius: 27px;
  background: var(--paper-2);
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---- Hero --------------------------------------------------------------------------------- */

.hero2 {
  padding-top: clamp(40px, 2rem + 4vw, 112px);
  padding-bottom: clamp(48px, 2rem + 4vw, 112px);
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 50% 100%, rgba(31, 90, 69, 0.07), transparent 70%),
    var(--paper);
}
.hero2-text {
  display: grid;
  justify-items: center;
  gap: clamp(18px, 1rem + 0.6vw, 26px);
  text-align: center;
}
.hero2-eyebrow {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
}
.hero2 h1 {
  max-width: 17ch;
  font-size: var(--h1);
}
.hero2-lede {
  max-width: 38em;
  color: var(--ink-2);
}
.hero2 .actions {
  justify-content: center;
}
.reassure {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* The picture: a laptop-size site centred, the phone overlapping its right edge, the owner's
   sentence overlapping its left. On phones the three stack and overlap less. */
.hero-pic {
  position: relative;
  margin: clamp(40px, 2rem + 3vw, 88px) auto 0;
  max-width: 1180px;
  padding-inline: clamp(0px, 4vw, 72px);
}
.hero-pic-site .browser {
  box-shadow: 0 40px 80px -40px rgba(29, 26, 22, 0.45);
}
.hero-pic-phone {
  position: absolute;
  right: 0;
  bottom: -6%;
  width: clamp(110px, 17vw, 236px);
}
.hero-pic-phone .phone {
  padding: clamp(4px, 0.6vw, 8px);
  border-radius: clamp(18px, 2.4vw, 34px);
}
.hero-pic-phone .phone-screen {
  border-radius: clamp(14px, 1.9vw, 27px);
}
.hero-pic-ask {
  position: absolute;
  left: 0;
  top: 18%;
  display: grid;
  justify-items: start;
  gap: 10px;
  width: min(380px, 46%);
}
.hero-pic-ask .bubble {
  margin: 0;
  box-shadow: 0 24px 48px -24px rgba(29, 26, 22, 0.5);
}
@media (max-width: 699px) {
  .hero-pic {
    padding-inline: 0;
  }
  .hero-pic-ask {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
    margin: 0 0 14px;
  }
  .hero-pic-ask .bubble {
    font-size: 0.875rem;
  }
  .hero-pic-phone {
    right: -6px;
    bottom: -10%;
    width: 30%;
  }
}
/* Phones: the phone screenshot is the picture, large and centred; the laptop frame steps aside
   (its <picture> serves the same phone image here, so nothing extra downloads). */
@media (max-width: 640px) {
  .hero-pic {
    display: grid;
    justify-items: center;
  }
  .hero-pic-site {
    display: none;
  }
  .hero-pic-ask {
    order: 2;
    margin: 18px 0 0;
    justify-items: center;
  }
  .hero-pic-phone {
    position: static;
    width: min(76vw, 320px);
  }
  .hero-pic-phone .phone {
    max-width: none;
    padding: 8px;
    border-radius: 36px;
  }
  .hero-pic-phone .phone-screen {
    border-radius: 29px;
  }
}

/* ---- The problem (a breathing beat) -------------------------------------------------------- */

.problem {
  padding-block: clamp(72px, 4rem + 6vw, 200px);
  border-top: 1px solid var(--rule);
}
.problem h2 {
  max-width: 20ch;
  font-size: clamp(2rem, 1.3rem + 2.8vw, 4rem);
}
.problem-lines {
  display: grid;
  gap: 0;
  margin: clamp(32px, 3vw, 56px) 0 0;
  padding: 0;
  list-style: none;
  max-width: 46rem;
}
.problem-lines li {
  padding: 16px 0;
  border-top: 1px solid var(--rule);
  font-size: var(--lede);
  color: var(--muted);
}

/* ---- Chapters ----------------------------------------------------------------------------- */

.chapter {
  padding-block: clamp(72px, 4rem + 5vw, 176px);
  border-top: 1px solid var(--rule);
}
.chapter-tint {
  background: var(--paper-2);
  border-top-color: var(--paper-2);
}
.ch-head {
  display: grid;
  gap: 18px;
  max-width: 42rem;
  margin-bottom: clamp(36px, 2rem + 2vw, 64px);
}
.ch-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 560;
  color: var(--accent);
}
.ch-n {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
}
.ch-head h2 {
  max-width: 16ch;
}
.pic-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9375rem;
  text-align: center;
}

/* Text on the left (sticky on wide screens), the picture on the right. */
@media (min-width: 1000px) {
  .ch-split {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(48px, 5vw, 112px);
    align-items: start;
  }
  .ch-split .ch-head {
    position: sticky;
    top: calc(var(--header) + 48px);
    margin-bottom: 0;
  }
}

/* Chapter 1: the conversation */
.chat-window {
  border: 1px solid var(--rule-strong);
  border-radius: 20px;
  background: var(--paper);
  box-shadow: 0 40px 80px -48px rgba(29, 26, 22, 0.45);
  overflow: hidden;
}
.chat-bar {
  display: flex;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  background: var(--white);
  font-weight: 560;
}
.chat-bar-meta {
  font-weight: 400;
  color: var(--muted);
  font-size: 0.875rem;
}
.chat-body {
  display: grid;
  gap: 14px;
  padding: clamp(16px, 2vw, 28px);
}
.chat-body .private-badge {
  justify-self: start;
}

/* Chapter 2: what owners ask for, under the starters */
.requests {
  display: grid;
  gap: 10px;
  margin: clamp(32px, 3vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}
.requests li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  padding: 16px 20px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--rule);
}
.req-ask {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.625rem);
  line-height: 1.25;
}
.req-done {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 560;
}
.req-done::before {
  content: "";
  width: 10px;
  height: 5px;
  border-left: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(-45deg);
}
@media (min-width: 1000px) {
  .requests {
    grid-template-columns: 1fr 1fr;
  }
}

/* Chapter 3: the editor, as one card over the owner's own site */
.editor-pic {
  position: relative;
  padding-right: clamp(0px, 22vw, 360px);
}
.editor-site {
  opacity: 0.92;
}
.editor-card {
  position: relative;
  margin: -64px 12px 0;
  padding: 20px;
  border: 1px solid var(--rule-strong);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 40px 80px -36px rgba(29, 26, 22, 0.5);
}
.editor-path {
  margin-bottom: 14px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.editor-card dl {
  display: grid;
  gap: 12px;
  margin: 0;
}
.ef dt {
  font-size: 0.8125rem;
  font-weight: 560;
  margin-bottom: 4px;
}
.ef dd {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 10px;
  background: var(--paper);
}
.ef-changed dd {
  border-color: var(--accent);
  background: var(--accent-soft);
  font-weight: 560;
}
.ef s {
  color: var(--muted);
  font-weight: 400;
  margin-right: 6px;
}
.editor-by {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.undo {
  color: var(--accent);
  font-weight: 560;
}
.editor-actions {
  margin-top: 14px;
}
.editor-actions .btn,
.needs-actions .btn {
  cursor: default;
}
@media (min-width: 800px) {
  .editor-card {
    position: absolute;
    right: 0;
    top: 50%;
    width: min(380px, 42%);
    margin: 0;
    transform: translateY(-50%);
  }
}

.points3 {
  display: grid;
  gap: 28px;
  margin: clamp(48px, 4vw, 80px) 0 0;
  padding: 0;
  list-style: none;
}
.points3 h3 {
  margin-bottom: 6px;
}
.points3 p {
  color: var(--muted);
}
@media (min-width: 800px) {
  .points3 {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

/* Chapter 4: approvals and versions */
.approve-pic {
  display: grid;
  gap: 16px;
}
.needs-you {
  padding: 18px 20px;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--rule-strong);
  box-shadow: 0 30px 60px -36px rgba(29, 26, 22, 0.45);
}
.needs-head {
  margin-bottom: 10px;
  font-size: 0.8125rem;
  font-weight: 560;
  color: var(--amber);
}
.needs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.needs-title {
  font-weight: 560;
  font-size: 1.0625rem;
}
.needs-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.875rem;
}
.needs-actions {
  display: flex;
  gap: 8px;
}
.version-list {
  margin: 0;
  padding: 8px 20px;
  list-style: none;
  border-radius: 18px;
  background: var(--white);
  border: 1px solid var(--rule);
}
.version {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.version:last-child {
  border-bottom: 0;
}
.v-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rule-strong);
}
.v-live .v-dot {
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(45, 122, 82, 0.18);
}
.v-wait .v-dot {
  background: var(--marigold);
}
.v-label {
  font-weight: 520;
}
.v-meta {
  grid-column: 2;
  grid-row: 2;
  color: var(--muted);
  font-size: 0.8125rem;
}
.v-state {
  grid-column: 3;
  grid-row: 1 / span 2;
  font-size: 0.8125rem;
  font-weight: 560;
  color: var(--muted);
}
.v-live .v-state {
  color: var(--green);
}
.v-wait .v-state {
  color: var(--amber);
}
.v-old .v-state {
  color: var(--accent);
}

/* Chapter 5: safe underneath (compact, dark) */
.chapter-night {
  background: var(--night);
  color: var(--night-ink);
  border-top-color: var(--night);
}
.chapter-night .ch-mark {
  color: var(--night-accent);
}
.chapter-night .lede {
  color: var(--night-muted);
}
.safe-grid {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--night-rule);
}
.safe-grid li {
  padding: 24px 0;
  border-bottom: 1px solid var(--night-rule);
}
.safe-grid h3 {
  margin-bottom: 6px;
  color: var(--night-ink);
}
.safe-grid p {
  color: var(--night-muted);
}
.tech-link {
  margin-top: 32px;
}
.chapter-night a {
  color: var(--night-accent);
}
@media (min-width: 760px) {
  .safe-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 48px;
  }
}
@media (min-width: 1100px) {
  .safe-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ---- After the story ---------------------------------------------------------------------- */

.band2 {
  padding-block: clamp(64px, 3rem + 4vw, 136px);
  border-top: 1px solid var(--rule);
}
.h2-small {
  font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem);
  max-width: 18ch;
}
.head2 {
  display: grid;
  gap: 14px;
  margin-bottom: 36px;
}
.agents2 {
  display: grid;
  gap: 32px;
}
.agents2 .lede {
  margin-top: 14px;
}
.agent-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}
.agent-rows li {
  display: grid;
  gap: 6px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}
.agent-name {
  font-size: 1.125rem;
  font-weight: 560;
}
.agent-text {
  color: var(--muted);
}
.pill {
  justify-self: start;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 560;
}
.pill-live {
  background: #e3f2e9;
  color: #1d5e3b;
}
.pill-soon {
  background: #fff3da;
  color: #6b4700;
}
@media (min-width: 1000px) {
  .agents2 {
    grid-template-columns: 5fr 7fr;
    gap: 80px;
  }
}
.seller-line {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.875rem;
}
@media (min-width: 1000px) {
  .faq2 {
    display: grid;
    grid-template-columns: 4fr 8fr;
    gap: 80px;
  }
}

.closing2 {
  position: relative;
  overflow: hidden;
  padding-block: clamp(96px, 5rem + 6vw, 220px);
  background: var(--night);
  color: var(--night-ink);
}
.closing-wall {
  position: absolute;
  inset: -10% -10%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  opacity: 0.16;
  transform: rotate(-6deg);
  pointer-events: none;
}
.closing-wall img {
  width: 100%;
  border-radius: 12px;
}
.closing2-text {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 22px;
  text-align: center;
}
.closing2 h2 {
  font-size: var(--h1);
  max-width: 12ch;
}
.closing2 .lede {
  color: var(--night-muted);
}
.closing2 .bubble {
  margin: 0;
}
.closing2 .bubble-you {
  background: var(--paper);
  color: var(--ink);
}
.closing2 .bubble-you .bubble-who {
  color: var(--muted);
}
.closing2 .actions {
  justify-content: center;
}
.closing-reach {
  color: var(--night-muted);
  font-size: 0.9375rem;
}
.closing-reach a {
  color: var(--night-ink);
}

/* ---- Sharp screenshots in strips ------------------------------------------------------------ */

.strips {
  display: block;
  line-height: 0;
}
.strips img,
.browser-view .strips img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: fill;
}
/* Each strip carries 2 px (of 1600) of the next one's top; pull the next one up over it. Margin
   percentages are of the width, so this stays exact at every size. */
.strips img:not(:last-child) {
  margin-bottom: -0.125%;
}

/* ---- "Built to follow" lines: plain text, never badge-like (billing-legal's condition) ---------- */

.law-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 20px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}
.law-marks a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  color: inherit;
}
.chapter-night .law-marks {
  margin-top: 32px;
  color: var(--night-muted);
}

picture {
  display: contents;
}
