/*
 * The cold email proposal page.
 *
 * PORTED FROM THE APPROVED DESIGN at docs/slide-demo.html, which Dylan signed
 * off. Every value here is copied from that file rather than approximated: the
 * colours, the shadow stack, the easing curve, the keyframes, the breakpoints
 * and the reduced-motion block are all byte-for-byte the same numbers. Nothing
 * was simplified, retuned or improved on the way across.
 *
 * WHAT CHANGED, AND ONLY THIS:
 *
 *   1. Every selector is prefixed with .ows-proposal. The mockup is a standalone
 *      HTML file and could put its tokens on :root and its rules on bare element
 *      names. This is a route inside the admin portal, so a bare `h1` rule or a
 *      :root variable would reach every dashboard screen in the app. Same
 *      precedent as .ows-book in ../book/booking-tokens.css and .ows-demo in
 *      OWS-Main.
 *   2. The mockup's `body { overflow: hidden }` became .ows-proposal-locked,
 *      applied to <body> by the component while it is mounted and removed on
 *      unmount. The deck is a fixed-height slide viewport, so the page behind it
 *      must not scroll, but the portal's other routes must keep scrolling
 *      normally the moment a visitor leaves.
 *   3. The video frame gained the rules a real <video> needs, which the mockup's
 *      striped placeholder did not. The frame itself is unchanged.
 *
 * ⚠️ NOT SCOPED UNDER .ows-book, AND THAT IS DELIBERATE. booking-tokens.css sets
 * `background: var(--od-bg)` and `min-height: 100vh` on .ows-book, and --od-bg is
 * #070b09, nearly black. This design is a light page on #F6F5F2 paper. Putting
 * the class on would paint a near-black sheet behind a light design and show it
 * through in any gap, on first paint and behind the safe-area on a notched
 * phone. The file is still imported by the component so the two pages stay in
 * one bundle group, and none of its rules apply because all of them are
 * .ows-book scoped. See the report for this stage.
 */

.ows-proposal {
  --paper: #F6F5F2;
  --card: #FFFFFF;
  --ink: #10130F;
  --body-copy: #414843;
  --muted: #7C857F;
  --line: #E3E1D9;
  --mint: #9FD8BD;
  --mint-tint: #EDF7F1;
  --mint-line: #C6E5D5;
  --clay: #8A5326;
  --clay-tint: #F4EEE6;
  --display: 'Bricolage Grotesque', Georgia, serif;
  --body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
  --shadow:
    0px 0px 0px 1px rgba(16, 19, 15, 0.05),
    0px 1px 1px -0.5px rgba(16, 19, 15, 0.05),
    0px 3px 3px -1.5px rgba(16, 19, 15, 0.05),
    0px 6px 6px -3px rgba(16, 19, 15, 0.05),
    0px 12px 12px -6px rgba(16, 19, 15, 0.05),
    0px 24px 24px -12px rgba(16, 19, 15, 0.05);

  background: var(--paper);
  color: var(--body-copy);
  font-family: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.ows-proposal * { box-sizing: border-box; }

/*
 * The mockup's body rule. The deck is a fixed-height viewport with its own
 * internal scrolling, so the document behind it must not scroll as well.
 * Applied and removed by the component, never left behind.
 */
body.ows-proposal-locked { overflow: hidden; }

.ows-proposal .app {
  position: relative;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  background-image:
    radial-gradient(circle at 14% 2%, rgba(159, 216, 189, 0.22) 0%, transparent 42%),
    radial-gradient(circle at 88% 8%, rgba(226, 163, 86, 0.10) 0%, transparent 40%),
    radial-gradient(circle at 50% 62%, rgba(255, 255, 255, 0.85) 0%, transparent 60%);
}

/* faint structural rules, borrowed from the reference */
.ows-proposal .gridlines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
}
.ows-proposal .gridlines span {
  width: 100%;
  max-width: 1180px;
  height: 100%;
  background-image: linear-gradient(to right, rgba(16, 19, 15, 0.035) 1px, transparent 1px);
  background-size: 25% 100%;
}

/* ---------- motion ---------- */

@keyframes ows-proposal-float-slow {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-8px) scale(1.02); }
}
@keyframes ows-proposal-float-medium {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes ows-proposal-float-fast {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes ows-proposal-ripple {
  0% { transform: scale(0.8); opacity: 0.55; }
  100% { transform: scale(2.4); opacity: 0; }
}
.ows-proposal .float-slow { animation: ows-proposal-float-slow 6s ease-in-out infinite; }
.ows-proposal .float-medium { animation: ows-proposal-float-medium 4.4s ease-in-out infinite; }
.ows-proposal .float-fast { animation: ows-proposal-float-fast 3.2s ease-in-out infinite; }

.ows-proposal .ripple-ring {
  position: absolute;
  border-radius: 999px;
  border: 2px solid rgba(159, 216, 189, 0.55);
  animation: ows-proposal-ripple 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}
.ows-proposal .ripple-ring:nth-of-type(2) { animation-delay: 1s; }
.ows-proposal .ripple-ring:nth-of-type(3) { animation-delay: 2s; }

/* raised mint icon tile, the reference's signature object */
.ows-proposal .tile {
  position: relative;
  z-index: 2;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #BCE7D2 0%, #8ECEAF 100%);
  box-shadow:
    0 10px 20px -6px rgba(93, 163, 129, 0.45),
    inset 0 2px 3px rgba(255, 255, 255, 0.85),
    inset 0 -2px 3px rgba(60, 120, 95, 0.18);
  color: var(--ink);
}
.ows-proposal .tile.warm {
  background: linear-gradient(180deg, #F0CFA6 0%, #E2A356 100%);
  box-shadow:
    0 10px 20px -6px rgba(180, 124, 56, 0.4),
    inset 0 2px 3px rgba(255, 255, 255, 0.8),
    inset 0 -2px 3px rgba(140, 90, 30, 0.2);
}

/* ---------- frosted tab bar ---------- */

.ows-proposal .progress {
  flex: none;
  position: relative;
  z-index: 50;
  isolation: isolate;
  background: rgba(246, 245, 242, 0.8);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
  border-bottom: 1px solid var(--line);
}
.ows-proposal .progress-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 26px;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ows-proposal .progress-inner::-webkit-scrollbar { display: none; }

.ows-proposal .pstep {
  flex: none;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 18px 16px 15px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: color 300ms var(--ease), border-color 300ms var(--ease);
}
.ows-proposal .pstep:hover { color: var(--ink); }
.ows-proposal .pstep:focus-visible { outline: 2px solid var(--ink); outline-offset: -3px; }
.ows-proposal .pnum {
  flex: none;
  width: 19px;
  height: 19px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-size: 9px;
  letter-spacing: 0;
  transition: all 300ms var(--ease);
}
.ows-proposal .pstep.on { color: var(--ink); border-bottom-color: var(--mint); }
.ows-proposal .pstep.on .pnum {
  border-color: var(--mint);
  background: var(--mint);
  color: var(--ink);
}

/* ---------- deck ---------- */

.ows-proposal .deck {
  position: relative;
  z-index: 10;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.ows-proposal .track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 620ms var(--ease);
  will-change: transform;
}
.ows-proposal .slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  display: grid;
  align-content: center;
  align-content: safe center;
  scrollbar-width: thin;
  scrollbar-color: rgba(16, 19, 15, 0.16) transparent;
}
.ows-proposal .slide::-webkit-scrollbar { width: 8px; }
.ows-proposal .slide::-webkit-scrollbar-thumb {
  background: rgba(16, 19, 15, 0.14);
  border-radius: 999px;
}

.ows-proposal .panel {
  position: relative;
  width: 100%;
  padding: 48px 26px;
}
.ows-proposal .wrap {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
}

/* ---------- shared type ---------- */

.ows-proposal .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--mint-tint);
  border: 1px solid var(--mint-line);
  border-radius: 999px;
  padding: 7px 15px;
  margin: 0 0 24px;
}
.ows-proposal .eyebrow i {
  width: 6px;
  height: 6px;
  background: var(--mint);
  border-radius: 999px;
  display: block;
  flex: none;
  box-shadow: 0 0 0 3px rgba(159, 216, 189, 0.28);
}

.ows-proposal h1,
.ows-proposal h2.big {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin: 0 0 26px;
  max-width: 17ch;
  text-wrap: balance;
}
.ows-proposal .grad {
  background: linear-gradient(transparent 60%, var(--mint) 60%);
  padding: 0 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.ows-proposal .lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 52ch;
  margin: 0;
}

.ows-proposal .readouts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}
.ows-proposal .readouts li {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 15px;
  background: var(--card);
}
.ows-proposal .readouts b { color: var(--ink); font-weight: 500; }

/* ---------- slide 1, cover ---------- */

.ows-proposal .slide-goal { overflow: hidden; }
.ows-proposal .slide-goal .panel { padding-top: 34px; padding-bottom: 34px; }
.ows-proposal .slide-goal .wrap { text-align: center; max-width: 780px; }
.ows-proposal .slide-goal h1,
.ows-proposal .slide-goal .lede { margin-left: auto; margin-right: auto; }
.ows-proposal .slide-goal h1 { max-width: 18ch; }
.ows-proposal .slide-goal .lede { max-width: 46ch; }

.ows-proposal .proposalfor {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0 auto 26px;
  padding-bottom: 26px;
  max-width: 22ch;
  text-wrap: balance;
  border-bottom: 1px solid var(--line);
}
.ows-proposal .greeting {
  font-family: var(--display);
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--clay);
  margin: 0 0 16px;
}
.ows-proposal .trust {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 26px;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    0px 2px 3px -1px rgba(16, 19, 15, 0.08),
    0px 0px 0px 1px rgba(16, 19, 15, 0.06);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}
.ows-proposal .trust .mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #BCE7D2 0%, #8ECEAF 100%);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.9), 0 3px 7px -3px rgba(93, 163, 129, 0.7);
  color: var(--ink);
  flex: none;
}

/* ---------- slide 2, included ---------- */

.ows-proposal .slide-included .panel { padding-top: 38px; }
/*
 * Sized for the film, which is portrait. 360px wide gives a 640px tall frame,
 * so she plays at a proper size on desktop without the frame running the full
 * width of the slide, and on a phone it simply fills the column.
 */
.ows-proposal .slide-included .videoblock { max-width: 360px; margin: 0 auto 20px; }

.ows-proposal .includes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.ows-proposal .dcard {
  background: var(--card);
  border-radius: 22px;
  padding: 6px;
  box-shadow: var(--shadow);
  transition: transform 500ms var(--ease);
  display: flex;
}
.ows-proposal .dcard:hover { transform: translateY(-3px); }
.ows-proposal .dcard .inner {
  height: 100%;
  border-radius: 17px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  background: #F5FBF8;
}
.ows-proposal .dcard .visual {
  position: relative;
  height: 100px;
  flex: none;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 62%, rgba(159, 216, 189, 0.34) 0%, transparent 68%);
}
.ows-proposal .dcard.warm .inner { background: #FDF9F3; }
.ows-proposal .dcard.warm .visual {
  background: radial-gradient(circle at 50% 62%, rgba(226, 163, 86, 0.24) 0%, transparent 68%);
}
.ows-proposal .dcard .body {
  padding: 6px 26px 28px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.75) 60%);
}
.ows-proposal .dcard .head {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
}
.ows-proposal .dcard .num {
  flex: none;
  margin-top: 3px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--mint-tint);
  border: 1px solid var(--mint-line);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
}
.ows-proposal .dcard.warm .num {
  background: var(--clay-tint);
  border-color: #E6D3BC;
  color: var(--clay);
}
.ows-proposal .dcard h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.28;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.ows-proposal .dcard p { margin: 0; font-size: 15px; line-height: 1.62; color: var(--muted); }
.ows-proposal .dcard .pages { margin-top: 2px; }
.ows-proposal .pages {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.ows-proposal .pages li {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay);
  background: var(--clay-tint);
  border-radius: 999px;
  padding: 5px 11px;
}

/* ---------- video ---------- */

.ows-proposal .videoblock {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.ows-proposal .frame {
  position: relative;
  /* The film's own shape, 1080x1920. It was 16:9, which shrank her to a narrow
     strip in the middle of a wide striped box. */
  aspect-ratio: 9/16;
  background: repeating-linear-gradient(135deg, #EFEEE9 0 14px, #E9E7E1 14px 28px);
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
}
/*
 * The real film, which the mockup's striped placeholder did not have.
 *
 * object-fit: contain, NOT cover. The film is 1080x1920, portrait, and the
 * frame now matches it (9:16, owner decision), so contain fills the frame
 * edge to edge. Contain is kept so that if the file is ever swapped for one of
 * a different shape it letterboxes rather than cropping, which is the bug
 * recorded in src/components/booking/VideoBlock.jsx.
 */
.ows-proposal .frame video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}
.ows-proposal .playbtn {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.ows-proposal .playbtn:focus-visible { outline: 2px solid var(--ink); outline-offset: -4px; }
.ows-proposal .play {
  position: relative;
  z-index: 2;
  width: 74px;
  height: 74px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #BCE7D2 0%, #8ECEAF 100%);
  box-shadow:
    0 0 0 10px rgba(159, 216, 189, 0.2),
    0 14px 28px -10px rgba(93, 163, 129, 0.55),
    inset 0 2px 3px rgba(255, 255, 255, 0.9),
    inset 0 -2px 3px rgba(60, 120, 95, 0.18);
  cursor: pointer;
  transition: transform 320ms var(--ease);
}
.ows-proposal .frame:hover .play { transform: scale(1.06); }
.ows-proposal .play svg { margin-left: 4px; }
.ows-proposal .slot {
  position: absolute;
  bottom: 13px;
  left: 13px;
  z-index: 4;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 5px 10px;
}
.ows-proposal .videofail {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  background: var(--card);
}
.ows-proposal .videofail p { margin: 0; }
.ows-proposal .videofail .why {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--clay);
}
.ows-proposal .videofail .what {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 40ch;
}
.ows-proposal .videofoot {
  padding: 16px 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  align-items: baseline;
}
.ows-proposal .videofoot strong {
  font-family: var(--display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.ows-proposal .videofoot span {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- slide 3, timeline ---------- */

.ows-proposal .timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ows-proposal .rail {
  position: absolute;
  left: 18px;
  top: 14px;
  bottom: 34px;
  width: 3px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.ows-proposal .rail-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: var(--mint);
}
.ows-proposal .stage {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 22px;
  align-items: start;
}
.ows-proposal .node {
  position: relative;
  z-index: 2;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--muted);
  transition: all 420ms var(--ease);
}
.ows-proposal .stage.lit .node {
  border-color: var(--mint);
  background: var(--mint);
  color: var(--ink);
  box-shadow:
    0 0 0 5px rgba(159, 216, 189, 0.22),
    inset 0 2px 3px rgba(255, 255, 255, 0.8),
    inset 0 -2px 3px rgba(60, 120, 95, 0.16);
}
.ows-proposal .stage:last-of-type.lit .node::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 999px;
  border: 2px solid rgba(159, 216, 189, 0.7);
  animation: ows-proposal-ripple 2.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}
.ows-proposal .card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 19px 22px 20px;
  box-shadow: var(--shadow);
  transition: border-color 340ms var(--ease), transform 340ms var(--ease);
}
.ows-proposal .stage.lit .card { border-color: var(--mint-line); }
.ows-proposal .card:hover { transform: translateY(-2px); }
.ows-proposal .when {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 9px;
}
.ows-proposal .card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(18px, 2.1vw, 22px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.ows-proposal .audits {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ows-proposal .audits li {
  background: var(--mint-tint);
  border: 1px solid var(--mint-line);
  border-radius: 6px;
  padding: 14px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--ink);
}
.ows-proposal .audits i {
  width: 6px;
  height: 6px;
  margin-top: 4px;
  background: var(--mint);
  border-radius: 999px;
  flex: none;
  display: block;
}

/* ---------- slide 4, why us ---------- */

.ows-proposal .slide-why .wrap { max-width: 1000px; }
.ows-proposal .slide-why h2.big { max-width: 20ch; margin-bottom: 26px; }
.ows-proposal .whylede {
  font-size: 17px;
  color: var(--muted);
  margin: 0 0 26px;
  max-width: 56ch;
}

/*
 * The eight reasons. The argument this slide is actually making.
 *
 * Two columns on a desktop and one on a phone, matching `.includes` on slide 2
 * so the deck keeps one rhythm. A tick and a pair of lines each, no cards: the
 * slide already carries a bordered panel underneath it and a second boxed thing
 * above it would read as two walls stacked rather than as an argument with its
 * evidence beneath.
 */
.ows-proposal .reasons {
  list-style: none;
  margin: 0 0 34px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 30px;
}
.ows-proposal .reasons li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  align-items: start;
}
.ows-proposal .reasons li > i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 999px;
  background: var(--mint-tint);
  border: 1px solid var(--mint-line);
  color: var(--ink);
  flex: none;
}
.ows-proposal .reasons h3 {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 3px;
}
.ows-proposal .reasons p {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}

/*
 * The wall, demoted. A rule above it and a quieter heading, so it reads as the
 * evidence under the argument rather than as the argument.
 */
.ows-proposal .detail { border-top: 1px solid var(--line); padding-top: 26px; }
.ows-proposal .detail .eyebrow { margin-bottom: 10px; }
.ows-proposal .detailhead {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 10px;
  max-width: 44ch;
}
.ows-proposal .detail .whylede { font-size: 15px; margin-bottom: 18px; }

.ows-proposal .wall {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  padding: 22px 22px 26px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
/*
 * No max-height and no overflow clip any more.
 *
 * The chips are sliced in the component to what fits at this width, because a
 * CSS clip meant nothing in the page could tell how many a prospect could see
 * and the "+N more" underneath was a number somebody typed. The count lives at
 * `chipsNarrow` / `chipsWide` in proposalCopy.js; if this list ever grows a row
 * past the panel, change those, not this.
 */
.ows-proposal .wall ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.ows-proposal .wall li {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  white-space: nowrap;
}
.ows-proposal .wall li.key {
  color: var(--ink);
  background: var(--mint-tint);
  border-color: var(--mint-line);
}
.ows-proposal .wallfoot {
  position: relative;
  margin: 18px 0 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.ows-proposal .wallfoot b {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  background: linear-gradient(transparent 58%, var(--mint) 58%);
  padding: 0 4px;
}

/* ---------- slide 5, price ---------- */

.ows-proposal .slide-price .wrap { max-width: 640px; }
.ows-proposal .pricecard {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  padding: 40px 36px 36px;
  box-shadow: 0 1px 2px rgba(16, 19, 15, 0.04), 0 30px 60px -34px rgba(16, 19, 15, 0.24);
  text-align: center;
}
.ows-proposal .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0 14px;
  font-family: var(--display);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--ink);
  font-size: clamp(46px, 7.4vw, 72px);
  margin: 0 0 18px;
}
.ows-proposal .price sup {
  font-size: 0.4em;
  vertical-align: super;
  letter-spacing: 0;
  color: var(--muted);
  margin-right: 1px;
}
.ows-proposal .price .then {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  align-self: center;
}
.ows-proposal .price .mo { font-size: 0.62em; }
/*
 * A lead with no setup fee. The monthly becomes the headline figure at full
 * size, and "No setup fee" sits above it as a line of its own, so the phrase
 * never wraps mid-figure on a phone the way it would at the price's size.
 */
.ows-proposal .price.no-setup { flex-direction: column; align-items: center; gap: 10px; }
.ows-proposal .price.no-setup .nosetup { font-size: 0.42em; letter-spacing: -0.02em; }
/* £349 crossed out, then £0, the same size as each other. */
.ows-proposal .price.no-setup .setuprow {
  display: inline-flex;
  align-items: baseline;
  gap: 0 14px;
  font-size: 0.62em;
}
.ows-proposal .price .was { position: relative; display: inline-block; }
.ows-proposal .price .was-text { opacity: 0.5; }
/*
 * A diagonal across the old price, top left to bottom right, kept outside the
 * fade. 1px in #E2A356, the warm colour of the onboarding page's "Save" badge,
 * so the crossed-out fee looks the same on both pages.
 */
.ows-proposal .price .was::after {
  content: '';
  position: absolute;
  inset: 0 -4px;
  pointer-events: none;
  background: linear-gradient(
    to bottom right,
    transparent calc(50% - 0.5px),
    #E2A356 calc(50% - 0.5px),
    #E2A356 calc(50% + 0.5px),
    transparent calc(50% + 0.5px)
  );
}
.ows-proposal .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/*
 * "one off investment", under the crossed-out £349 and the £0 and centred on
 * them. Mono and small, the same voice as the "a month" beside the monthly, so
 * the card has a label on each of its two figures rather than on one of them.
 */
.ows-proposal .price.no-setup .setupblock {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.ows-proposal .price .setupcompare {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.ows-proposal .price.no-setup .mo { font-size: 1em; }
.ows-proposal .price em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.3em;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: 6px;
}
.ows-proposal .priceline {
  margin: 0 auto 16px;
  max-width: 44ch;
  font-size: 16px;
  line-height: 1.55;
  color: var(--body-copy);
  text-align: center;
}
.ows-proposal .dashline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  margin: 0 auto;
  max-width: 44ch;
  padding: 14px 18px;
  border-radius: 8px;
  background: var(--mint-tint);
  border: 1px solid var(--mint-line);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.ows-proposal .dashline i {
  width: 6px;
  height: 6px;
  margin-top: 8px;
  background: var(--mint);
  border-radius: 999px;
  flex: none;
  display: block;
  box-shadow: 0 0 0 3px rgba(159, 216, 189, 0.3);
}

.ows-proposal .ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}
.ows-proposal .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  padding: 16px 30px;
  transition: transform 300ms var(--ease), box-shadow 300ms var(--ease),
    border-color 300ms var(--ease), background 300ms var(--ease);
}
.ows-proposal .btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.ows-proposal .btn-primary {
  background: var(--mint);
  color: var(--ink);
  box-shadow: 0 12px 26px -14px rgba(159, 216, 189, 0.9);
}
.ows-proposal .btn-primary:hover { transform: translateY(-2px); background: #8ECEAF; }
.ows-proposal .btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.ows-proposal .btn-ghost:hover { border-color: #C9C5B9; transform: translateY(-2px); }
.ows-proposal .tiny {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

/* ---------- bottom bar ---------- */

.ows-proposal .deckbar {
  flex: none;
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(246, 245, 242, 0.86);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
  border-top: 1px solid var(--line);
}
.ows-proposal .dots {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 15px 22px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.ows-proposal .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #D3D0C6;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: all 320ms var(--ease);
}
.ows-proposal .dot:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.ows-proposal .dot.on { width: 32px; background: var(--mint); }
.ows-proposal .navpill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 16px 28px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow);
  transition: border-color 300ms var(--ease), background 300ms var(--ease), opacity 300ms var(--ease);
}
.ows-proposal .navpill:hover { border-color: var(--mint); background: var(--mint-tint); }
.ows-proposal .navpill:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.ows-proposal .navpill[disabled] { opacity: 0.34; pointer-events: none; }
.ows-proposal .navpill svg { flex: none; }

/* ---------- the unmatched and loading states ---------- */

/*
 * Not an error page, and it must never read as one. Same paper, same type, no
 * price, no name, no business, nothing broken looking. Somebody who lands here
 * followed a link we sent them.
 */
.ows-proposal .plain {
  flex: 1 1 auto;
  display: grid;
  place-content: center;
  padding: 48px 26px;
  text-align: center;
}
.ows-proposal .plain .proposalfor { border-bottom: 0; padding-bottom: 0; margin-bottom: 18px; }
.ows-proposal .plain h1 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.ows-proposal .plain .lede { max-width: 44ch; margin-left: auto; margin-right: auto; }

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  .ows-proposal .panel { padding: 32px 18px; }
  .ows-proposal .slide-goal .panel { padding-top: 24px; padding-bottom: 24px; }
  .ows-proposal .progress-inner { padding: 0 12px; }
  .ows-proposal .pstep { padding: 15px 11px 12px; font-size: 10px; letter-spacing: 0.12em; }
  .ows-proposal .audits,
  .ows-proposal .reasons,
  .ows-proposal .includes { grid-template-columns: 1fr; }
  .ows-proposal .detailhead { font-size: 19px; }
  .ows-proposal .stage { grid-template-columns: 32px 1fr; gap: 14px; }
  .ows-proposal .node { width: 32px; height: 32px; font-size: 10.5px; }
  .ows-proposal .rail { left: 14px; top: 11px; }
  .ows-proposal .pricecard { padding: 30px 20px 28px; }
  .ows-proposal .price { gap: 0 10px; }
  .ows-proposal .priceline { font-size: 15px; }
  .ows-proposal .dashline { font-size: 14.5px; }
  .ows-proposal .btn { padding: 15px 24px; font-size: 15px; }
  .ows-proposal .deckbar { padding: 14px; gap: 9px; }
  .ows-proposal .navpill { padding: 14px 20px; font-size: 12px; letter-spacing: 0.14em; }
  .ows-proposal .dots { padding: 13px 18px; gap: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  .ows-proposal .track { transition: none; }
  .ows-proposal .card:hover,
  .ows-proposal .btn:hover,
  .ows-proposal .dcard:hover,
  .ows-proposal .navpill:hover { transform: none; }
  .ows-proposal .float-slow,
  .ows-proposal .float-medium,
  .ows-proposal .float-fast { animation: none; }
  .ows-proposal .ripple-ring,
  .ows-proposal .stage:last-of-type.lit .node::after { display: none; }
}
