/* Overstand Homepage: Use Cases showcase, Our products cards, the hero's
   walkthrough link and the "Who it is for" Use Cases line.
   Colours and type come from the theme (its presets, with fallbacks). */
.osh-ucs, .osh-prod, .osh-watch, .osh-exline {
  --osh-ink: var(--wp--preset--color--ink, #17150F);
  --osh-cream: var(--wp--preset--color--cream, #FBF5E9);
  --osh-bone: var(--wp--preset--color--bone, #F1EBDD);
  --osh-stone: var(--wp--preset--color--stone, #E0D8C8);
  --osh-char: var(--wp--preset--color--charcoal, #26231C);
  --osh-gold: var(--wp--preset--color--gold, #EAB13C);
  --osh-dark: #1B1A18;
  --osh-screen: #12110F;
  --osh-gold-d: #7E5518;
  --osh-mute-l: #645D4D;
  --osh-mute-d: #B6AD99;
  --osh-mute-d2: #9F9787;
  --osh-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --osh-serif: Fraunces, Georgia, "Times New Roman", serif;
}

/* ---------- Use Cases showcase ---------- */
.osh-ucs.sec { background: var(--osh-bone); }
.osh-ucs .split { align-items: end; }
.osh-ucs .facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.osh-ucs .facts li { margin: 0; font: 400 10.5px/1 var(--osh-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--osh-gold-d); border: 1px solid rgba(126,85,24,.22); background: rgba(126,85,24,.05); border-radius: 999px; padding: 7px 11px; }
.osh-ucs .facts b { font-weight: 500; color: var(--osh-ink); }

.osh-ucs .room { position: relative; margin-top: 64px; border-radius: 28px; background: linear-gradient(160deg, var(--osh-char) 0%, var(--osh-dark) 60%); color: var(--osh-cream); padding: 56px; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.28fr); gap: 48px; overflow: hidden; isolation: isolate; }
.osh-ucs .room::before { content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; right: -160px; top: -220px; background: radial-gradient(circle, rgba(234,177,60,.14), rgba(0,0,0,0) 65%); pointer-events: none; }
.osh-ucs .pick, .osh-ucs .player { min-width: 0; }

.osh-ucs .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.osh-ucs .chip { font: 500 12.5px/1.2 Inter, system-ui, sans-serif; color: var(--osh-mute-d); background: transparent; border: 1px solid rgba(251,245,233,.14); border-radius: 999px; padding: 8px 13px; min-height: 34px; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; }
.osh-ucs .chip i { font: 400 10.5px var(--osh-mono); font-style: normal; color: var(--osh-mute-d2); }
.osh-ucs .chip[aria-pressed="true"] { background: var(--osh-cream); color: var(--osh-ink); border-color: var(--osh-cream); }
.osh-ucs .chip[aria-pressed="true"] i { color: var(--osh-gold-d); }
.osh-ucs .chip:hover:not([aria-pressed="true"]) { border-color: rgba(251,245,233,.32); color: var(--osh-cream); }
.osh-ucs .chip:focus-visible, .osh-ucs .pz:focus-visible { outline: 2px solid var(--osh-gold); outline-offset: 2px; }

.osh-ucs .rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(251,245,233,.12); }
.osh-ucs .row { margin: 0; border-bottom: 1px solid rgba(251,245,233,.12); }
.osh-ucs .row a { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 28px; gap: 16px; align-items: center; padding: 16px 14px 16px 12px; text-decoration: none; color: var(--osh-cream); border-radius: 14px; transition: background .2s; }
.osh-ucs .row a::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 2px; border-radius: 2px; background: var(--osh-gold); transform: scaleY(0); transition: transform .25s; }
.osh-ucs .row.on a { background: rgba(251,245,233,.05); }
.osh-ucs .row.on a::before { transform: scaleY(1); }
.osh-ucs .row a:focus-visible { outline: 2px solid var(--osh-gold); outline-offset: -2px; }
.osh-ucs .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--osh-gold); background: rgba(126,85,24,.08); border: 1px solid rgba(126,85,24,.18); }
.osh-ucs .row.on .ico { border-color: rgba(234,177,60,.5); background: rgba(234,177,60,.1); }
.osh-ucs .ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.osh-ucs .tx { min-width: 0; }
.osh-ucs .t { display: block; font-size: 16.5px; font-weight: 450; letter-spacing: -0.012em; line-height: 1.3; color: var(--osh-cream); }
.osh-ucs .s { display: block; margin-top: 5px; font: 400 10.5px/1.5 var(--osh-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--osh-mute-d2); }
.osh-ucs .len { font: 400 10.5px/1 var(--osh-mono); letter-spacing: .08em; color: var(--osh-mute-d); border: 1px solid rgba(251,245,233,.14); border-radius: 999px; padding: 6px 9px; white-space: nowrap; }
.osh-ucs .go { width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(251,245,233,.14); display: grid; place-items: center; color: var(--osh-mute-d); font-size: 13px; transition: background .2s, color .2s, border-color .2s; }
.osh-ucs .row.on .go, .osh-ucs .row a:hover .go { background: var(--osh-gold); border-color: var(--osh-gold); color: var(--osh-ink); }
.osh-ucs .row a:hover .t { text-decoration: underline; text-decoration-color: rgba(234,177,60,.6); text-underline-offset: 4px; }

.osh-ucs .player { display: flex; flex-direction: column; gap: 14px; }
.osh-ucs .screen { position: relative; display: block; aspect-ratio: 16 / 9; max-width: 100%; border-radius: 18px; overflow: hidden; background: var(--osh-screen); border: 1px solid rgba(251,245,233,.1); box-shadow: 0 40px 80px -40px rgba(0,0,0,.9); text-decoration: none; color: var(--osh-cream); }
.osh-ucs .screen::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(251,245,233,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(251,245,233,.035) 1px, transparent 1px); background-size: 32px 32px; }
.osh-ucs .screen:focus-visible { outline: 2px solid var(--osh-gold); outline-offset: 3px; }
.osh-ucs .screen svg.tz { position: absolute; inset: 0; width: 100%; height: 100%; }
.osh-ucs .shade { position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(rgba(18,17,15,0), rgba(18,17,15,.92) 78%); pointer-events: none; }
.osh-ucs .pnote { position: absolute; top: 14px; right: 14px; font: 400 10px/1 var(--osh-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--osh-mute-d); }
.osh-ucs .play { position: absolute; left: 16px; bottom: 18px; display: inline-flex; align-items: center; gap: 12px; height: 50px; padding: 0 20px 0 6px; border-radius: 999px; background: var(--osh-gold); color: var(--osh-ink); font: 500 14.5px Inter, system-ui, sans-serif; box-shadow: 0 0 0 8px rgba(234,177,60,.14), 0 18px 40px -12px rgba(0,0,0,.8); transition: transform .25s, box-shadow .25s; }
.osh-ucs .play i { width: 38px; height: 38px; border-radius: 50%; background: var(--osh-ink); display: grid; place-items: center; }
.osh-ucs .play svg { width: 14px; height: 14px; margin-left: 3px; fill: var(--osh-gold); }
.osh-ucs .play em { font: 400 11px var(--osh-mono); font-style: normal; letter-spacing: .06em; color: rgba(23,21,15,.72); }
.osh-ucs .screen:hover .play { transform: translateY(-2px); box-shadow: 0 0 0 12px rgba(234,177,60,.18), 0 18px 40px -12px rgba(0,0,0,.8); }
.osh-ucs .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(251,245,233,.08); }
.osh-ucs .bar i { display: block; height: 100%; width: 0; background: var(--osh-gold); }
.osh-ucs.paused .bar i { opacity: .45; }
.osh-ucs .cap { min-width: 0; }
.osh-ucs .cap b { display: block; font-weight: 450; font-size: 20px; letter-spacing: -0.02em; line-height: 1.25; text-wrap: balance; color: var(--osh-cream); }
.osh-ucs .cap small { display: block; margin-top: 6px; font: 400 10.5px/1.4 var(--osh-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--osh-mute-d); }
.osh-ucs .under { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font: 400 10.5px/1.5 var(--osh-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--osh-mute-d2); }
.osh-ucs .pz { margin-left: auto; font: 500 10.5px/1 var(--osh-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--osh-mute-d); background: transparent; border: 1px solid rgba(251,245,233,.18); border-radius: 999px; padding: 8px 12px; min-height: 30px; cursor: pointer; }
.osh-ucs .pz:hover { color: var(--osh-cream); border-color: rgba(251,245,233,.36); }

.osh-ucs .end { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.osh-ucs .end .tlink { margin: 0; }
.osh-ucs .soon { margin: 0; font-size: 13.5px; color: var(--osh-mute-l); display: flex; align-items: center; gap: 10px; }
.osh-ucs .soon::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--osh-gold); flex: none; }

/* preview motion */
.osh-ucs .tz .grow { transform-box: fill-box; transform-origin: 50% 100%; animation: osh-grow .7s cubic-bezier(.2,.7,.2,1) both; }
.osh-ucs .tz .drop { transform-box: fill-box; transform-origin: 50% 0%; animation: osh-grow .7s cubic-bezier(.2,.7,.2,1) both; }
.osh-ucs .tz .barx { transform-box: fill-box; transform-origin: 0 50%; animation-name: osh-barx; animation-timing-function: ease; animation-fill-mode: both; }
.osh-ucs .tz .fade { animation: osh-fade .6s ease both; }
.osh-ucs .tz .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: osh-draw 2.2s ease-out both; }
.osh-ucs .tz .fly { animation: osh-fly 1.1s cubic-bezier(.5,0,.2,1) both; }
.osh-ucs .tz .lit { animation: osh-lit .5s ease both; }
@keyframes osh-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes osh-barx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes osh-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes osh-draw { to { stroke-dashoffset: 0; } }
@keyframes osh-fly { from { transform: translate(0, 0); opacity: 1; } 80% { opacity: 1; } to { transform: translate(var(--dx), var(--dy)) scale(.4); opacity: 0; } }
@keyframes osh-lit { from { fill: #26231C; stroke: rgba(251,245,233,.16); } to { fill: #3A3020; stroke: #EAB13C; } }

@media (max-width: 1100px) {
  .osh-ucs .room { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 40px; }
  .osh-ucs .player { order: -1; }
}
@media (max-width: 640px) {
  .osh-ucs .room { margin-top: 36px; padding: 20px 16px 16px; gap: 20px; border-radius: 22px; }
  .osh-ucs .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 14px; padding: 0 16px 4px; scrollbar-width: none; }
  .osh-ucs .chip { flex: none; }
  .osh-ucs .row a { grid-template-columns: 36px minmax(0, 1fr) 26px; gap: 12px; padding: 14px 6px 14px 10px; }
  .osh-ucs .ico { width: 36px; height: 36px; }
  .osh-ucs .len { display: none; }
  .osh-ucs .t { font-size: 15.5px; }
  .osh-ucs .cap b { font-size: 17px; }
  .osh-ucs .play { left: 10px; bottom: 10px; height: 40px; gap: 9px; padding: 0 14px 0 4px; font-size: 13px; box-shadow: 0 0 0 5px rgba(234,177,60,.14); }
  .osh-ucs .play i { width: 32px; height: 32px; }
  .osh-ucs .play em, .osh-ucs .pnote { display: none; }
  .osh-ucs .pz { margin-left: 0; }
  .osh-ucs .under > span:first-child { display: none; }
}

/* ---------- Our products (two cards, core blocks) ---------- */
.osh-prod .osh-cards { margin-top: 64px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.osh-prod .osh-card { position: relative; display: flex; flex-direction: column; border-radius: 24px; padding: 40px; background: linear-gradient(160deg, var(--osh-char) 0%, var(--osh-dark) 70%); border: 1px solid rgba(251,245,233,.1); overflow: hidden; isolation: isolate; min-width: 0; }
.osh-prod .osh-card::before { content: ""; position: absolute; z-index: -1; width: 420px; height: 420px; right: -170px; top: -190px; background: radial-gradient(circle, rgba(234,177,60,.12), rgba(0,0,0,0) 65%); pointer-events: none; }
.osh-prod .osh-card > * { margin-top: 0; margin-bottom: 0; }
.osh-prod .osh-card .label { margin: 0; }
.osh-prod .osh-card h3 { margin-top: 18px; font-weight: 400; font-size: 30px; line-height: 1.15; letter-spacing: -0.03em; color: var(--osh-cream); text-wrap: balance; }
.osh-prod .osh-card h3 em { font-family: var(--osh-serif); font-style: italic; font-weight: 420; font-size: 1.12em; letter-spacing: -0.015em; color: var(--osh-gold); }
.osh-prod .osh-card .body { margin-top: 16px; font-size: 15px; line-height: 1.7; color: var(--osh-mute-d); max-width: 52ch; }
.osh-prod .osh-card ul.osh-pts { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.osh-prod .osh-card ul.osh-pts li { margin: 0; font: 400 10.5px/1.2 var(--osh-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--osh-mute-d); border: 1px solid rgba(251,245,233,.14); border-radius: 999px; padding: 8px 12px; }
.osh-prod .osh-card .tlink { margin-top: auto; padding-top: 34px; }
@media (max-width: 900px) {
  .osh-prod .osh-cards { grid-template-columns: minmax(0, 1fr); margin-top: 40px; gap: 14px; }
  .osh-prod .osh-card { padding: 28px 22px; border-radius: 20px; }
  .osh-prod .osh-card h3 { font-size: 26px; }
}

/* ---------- Hero: watch button under the two buttons ---------- */
.osh-watch { margin-top: 16px; }
.osh-watch a { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 20px 0 6px; border-radius: 999px; border: 1px solid rgba(234,177,60,.5); background: rgba(234,177,60,.1); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font: 500 14.5px/1.2 Inter, system-ui, sans-serif; color: var(--osh-cream); text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.osh-watch a::before { content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--osh-gold) no-repeat 14px 50% / 10px 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M0 0v12l10-6z' fill='%2317150F'/%3E%3C/svg%3E"); box-shadow: 0 0 0 5px rgba(234,177,60,.16); }
.osh-watch a::after { content: "\2192" / ""; margin-left: 2px; color: var(--osh-gold); transition: transform .2s; }
.osh-watch a:hover { background: rgba(234,177,60,.2); border-color: var(--osh-gold); }
.osh-watch a:hover::after { transform: translateX(3px); }
.osh-watch a:focus-visible { outline: 2px solid var(--osh-gold); outline-offset: 3px; }
@media (max-width: 640px) { .osh-watch a { display: flex; width: 100%; justify-content: center; } }

/* ---------- Hero: the main button plays the walkthroughs ---------- */
.osh-play .wp-block-button__link { display: inline-flex; align-items: center; gap: 12px; padding-left: 8px !important; }
.osh-play .wp-block-button__link::before { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: #17150F no-repeat 12px 50% / 9px 11px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 11'%3E%3Cpath d='M0 0v11l9-5.5z' fill='%23EAB13C'/%3E%3C/svg%3E"); }

/* ---------- Who it is for: one line to the Use Cases ---------- */
.osh-exline { margin-top: 64px; border-radius: 20px; background: linear-gradient(160deg, var(--osh-char) 0%, var(--osh-dark) 70%); color: var(--osh-cream); padding: 26px 32px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.osh-exline > * { margin: 0; }
.osh-exline .osh-exl-t { font-size: 20px; letter-spacing: -0.02em; line-height: 1.3; color: var(--osh-cream); }
.osh-exline .osh-exl-t em { font-family: var(--osh-serif); font-style: italic; font-weight: 420; color: var(--osh-gold); font-size: 1.1em; }
.osh-exline .tlink { margin: 0; }
@media (max-width: 640px) { .osh-exline { padding: 22px; margin-top: 40px; } .osh-exline .osh-exl-t { font-size: 18px; } }

@media (prefers-reduced-motion: reduce) {
  .osh-ucs .tz * { animation: none !important; }
  .osh-ucs .tz .draw { stroke-dashoffset: 0; }
  .osh-ucs .row a, .osh-ucs .row a::before, .osh-ucs .play { transition: none; }
}

/* homepage hero headline: a little wider than the text under it, so it breaks
   into three even lines on desktop ("... use case in / weeks, not quarters.") */
@media (min-width: 641px) {
  .hero .top > .htxt:has(.osh-play) > .h1 { width: min(700px, calc(100vw - 2 * var(--gx, 22px))); max-width: none; }
}
/* links inside the dark line and cards stay light */
.osh-exline .tlink a, .osh-prod .osh-card .tlink a { color: var(--osh-cream); }

/* in the editor the preview does not move; say where it plays */
.editor-styles-wrapper .osh-ucs .screen::after { content: "The preview plays on the website"; position: absolute; left: 0; right: 0; top: 42%; text-align: center; font: 400 11px/1.4 var(--osh-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--osh-mute-d2); }
