/* "Try the Sell screen" wrapper: slim top bar, device frame around the real app, trial modal, coach marks. */
@font-face { font-family: Fredoka; font-weight: 600; font-display: swap; src: url(../assets/fonts/fredoka-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Fredoka; font-weight: 700; font-display: swap; src: url(../assets/fonts/fredoka-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: Nunito; font-weight: 600; font-display: swap; src: url(../assets/fonts/nunito-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: Nunito; font-weight: 800; font-display: swap; src: url(../assets/fonts/nunito-latin-800-normal.woff2) format('woff2'); }

:root {
  --orange: #FB8B23; --orange-dk: #D96F0F; --orange-lt: #FFE3C4;
  --black: #0E0B0F; --ink: #2A2430; --mute: #6F6570; --white: #fff; --cream: #FFF7EE;
  --font-h: Fredoka, Nunito, system-ui, sans-serif; --font-b: Nunito, system-ui, -apple-system, sans-serif;
  --bar: 64px;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-b); overflow: hidden; }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 8px; }

/* ---------- top bar ---------- */
.tbar { position: relative; z-index: 5; height: var(--bar); display: flex; align-items: center; gap: 16px; padding: 0 20px; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); background: var(--black); color: var(--white); }
.tbar-logo { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; font: 700 22px/1 var(--font-h); letter-spacing: -.01em; flex: none; }
.tbar-logo img { width: 40px; height: auto; }
.tbar-logo b { color: var(--orange); font-weight: 700; }
.tbar-by { margin-left: 4px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.2); font: 600 11.5px/1.25 var(--font-b, inherit); letter-spacing: 0; color: rgba(255,255,255,.6); }
@media (max-width: 1080px) { .tbar-by { display: none; } }
.tbar-note { margin: 0 auto 0 8px; display: flex; align-items: center; gap: 10px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: 15px; font-weight: 600; color: rgba(255,255,255,.86); white-space: nowrap; }
.tbar-note b { color: var(--white); font-weight: 800; }
.tbar-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(251,139,35,.25); }
.tbar-actions { display: flex; align-items: center; gap: 10px; flex: none; }

.tbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 20px; border-radius: 999px; border: 2.5px solid var(--black); background: var(--orange); color: var(--white); font: 700 16px/1 var(--font-h); text-decoration: none; cursor: pointer; box-shadow: 0 3px 0 var(--black); transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.tbar .tbtn { border-color: var(--orange); box-shadow: 0 3px 0 var(--orange-dk); }
.tbtn:hover { transform: translateY(-1px); }
.tbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--black); }
.tbtn.ghost { background: transparent; color: inherit; }
.tbar .tbtn.ghost { border-color: rgba(255,255,255,.28); box-shadow: none; color: var(--white); }
.tbar .tbtn.ghost:hover { border-color: rgba(255,255,255,.6); }
.tbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tbtn.big { min-height: 54px; padding: 0 26px; font-size: 18px; box-shadow: 0 4px 0 var(--black); }

/* ---------- stage ---------- */
.stage { position: relative; height: calc(100% - var(--bar)); overflow: hidden; }
.device { position: relative; width: 100%; height: 100%; background: var(--white); }
.device iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--cream); }
.device-cam { display: none; }

/* Desktop: the app sits in a tablet, centered, on the marketing site's cream backdrop. try.js sets
   --dw/--dh (the app's own size) and --ds (scale so the whole tablet fits the window). */
.framed .stage {
  background:
    radial-gradient(700px 480px at 8% 12%, rgba(251,139,35,.18), rgba(251,139,35,0) 70%),
    radial-gradient(760px 520px at 96% 92%, rgba(227,168,103,.22), rgba(227,168,103,0) 70%),
    var(--cream); }
.framed .device { width: calc(var(--dw) * 1px + 32px); height: calc(var(--dh) * 1px + 32px); padding: 16px; border-radius: 40px; background: var(--black);
  box-shadow: 0 0 0 2px #2b2530 inset, 0 40px 90px rgba(14,11,15,.28), 0 10px 24px rgba(14,11,15,.16);
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(var(--ds, 1)); transform-origin: center center; }
.framed .device iframe { width: calc(var(--dw) * 1px); height: calc(var(--dh) * 1px); border-radius: 24px; }
.framed .device-cam { display: block; position: absolute; top: 50%; left: 6px; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: #3a3340; }

/* ---------- trial modal ---------- */
.tmodal { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; padding: 16px; background: rgba(14,11,15,.55); animation: tfade .18s ease-out; }
.tmodal-card { position: relative; width: min(440px, 100%); padding: 30px 28px 26px; border-radius: 28px; border: 3px solid var(--black); background: var(--white); box-shadow: 0 8px 0 var(--black); text-align: center; animation: tpop .26s cubic-bezier(.2,.8,.3,1.2); }
.tmodal-peppy { display: block; width: 96px; height: auto; margin: -84px auto 10px; filter: drop-shadow(0 6px 10px rgba(14,11,15,.18)); }
.tmodal-chip { display: inline-block; margin-bottom: 10px; padding: 5px 12px; border-radius: 999px; background: var(--orange-lt); color: #8a4a0c; font: 700 13px/1.2 var(--font-b); text-transform: uppercase; letter-spacing: .06em; }
.tmodal h2 { margin: 0 0 10px; font: 700 27px/1.1 var(--font-h); color: var(--black); text-wrap: balance; }
.tmodal p { margin: 0 0 22px; font-size: 17px; line-height: 1.5; color: var(--mute); }
.tmodal-actions { display: flex; flex-direction: column; gap: 12px; }
.tmodal-actions .tbtn.ghost { color: var(--black); box-shadow: none; border-color: rgba(14,11,15,.18); }
.tmodal-x { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--mute); cursor: pointer; display: grid; place-items: center; }
.tmodal-x:hover { background: #f4ede6; }
.tmodal-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
@keyframes tfade { from { opacity: 0; } }
@keyframes tpop { from { opacity: 0; transform: translateY(14px) scale(.96); } }

/* ---------- coach marks ---------- */
.coach { position: fixed; inset: 0; z-index: 20; pointer-events: none; }
.coach-ring { position: fixed; border-radius: 18px; border: 3px solid var(--orange); box-shadow: 0 0 0 6px rgba(251,139,35,.28), 0 0 0 9999px rgba(14,11,15,.12); transition: all .25s ease; animation: tring 1.6s ease-in-out infinite; }
.coach-card { position: fixed; width: min(320px, calc(100vw - 32px)); padding: 16px 18px 14px; border-radius: 20px; border: 2.5px solid var(--black); background: var(--white); box-shadow: 0 5px 0 var(--black); pointer-events: auto; transition: top .25s ease, left .25s ease; }
.coach-step { font: 700 12px/1 var(--font-b); text-transform: uppercase; letter-spacing: .08em; color: var(--orange-dk); margin-bottom: 6px; }
.coach-text { margin: 0 0 12px; font: 600 16px/1.4 var(--font-b); color: var(--ink); }
.coach-text b { font-weight: 800; color: var(--black); }
.coach-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.coach-skip { border: 0; background: none; padding: 6px 0; color: var(--mute); font: 700 14px/1 var(--font-b); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.coach-next { min-height: 36px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--black); background: var(--orange); color: var(--white); font: 700 15px/1 var(--font-h); cursor: pointer; box-shadow: 0 2px 0 var(--black); }
@keyframes tring { 50% { box-shadow: 0 0 0 10px rgba(251,139,35,.12), 0 0 0 9999px rgba(14,11,15,.12); } }

@media (prefers-reduced-motion: reduce) {
  .tmodal, .tmodal-card, .coach-ring { animation: none; }
  .coach-ring, .coach-card, .tbtn { transition: none; }
}

/* ---------- small screens ---------- */
@media (max-width: 760px) {
  :root { --bar: 56px; }
  .tbar { gap: 10px; padding: 0 12px; padding-left: max(12px, env(safe-area-inset-left)); padding-right: max(12px, env(safe-area-inset-right)); }
  .tbar-logo span { display: none; }
  .tbar-logo img { width: 36px; }
  .tbar-note { margin-left: 0; padding: 6px 10px; font-size: 13px; gap: 7px; }
  .tbar-note .tbar-dot { width: 7px; height: 7px; box-shadow: 0 0 0 3px rgba(251,139,35,.25); }
  .tbtn { min-height: 38px; padding: 0 14px; font-size: 15px; }
  .tbtn.icon-only { width: 38px; padding: 0; }
  .tbtn.icon-only span { display: none; }
}
.tb-short { display: none; }
@media (max-width: 520px) {
  .tbar-note { border-radius: 14px; padding: 6px 10px; line-height: 1.15; white-space: normal; }
  .tbar-note-txt { display: flex; flex-direction: column; font-size: 12.5px; }
  .tbar-note-txt b { font-size: 13px; }
  .tb-long { display: none; }
  .tb-short { display: inline; }
}
@media (max-width: 330px) {
  .tbar-note { display: none; }
  .tbar-actions { margin-left: auto; }
}
