/* Front site, soft-app layer. Loads after home.css. Same colours and fonts as the live site; this file adds depth,
   a free sample, swipeable plans on phones, a section dock and a motion switch, and dials the orange back to
   one hero button plus the pricing accents (Ray's brief, 2026-11-09). */
:root{--sh-front:0 2px 4px rgba(21,19,28,.08),0 28px 50px -18px rgba(18,16,42,.55)}

/* ---------- motion switch: "Motion: off" and the device's own setting both finish every animation at once ---------- */
html.still *,html.still *::before,html.still *::after{animation-duration:.001ms!important;animation-delay:0s!important;animation-iteration-count:1!important;transition:none!important;scroll-behavior:auto!important}
@media (prefers-reduced-motion:reduce){
  html:not(.still) *,html:not(.still) *::before,html:not(.still) *::after{animation-duration:.001ms!important;animation-delay:0s!important;animation-iteration-count:1!important;transition:none!important;scroll-behavior:auto!important}
}
.motion-btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border-radius:999px;border:1px solid var(--rule);background:var(--card);color:var(--ink2);font:600 14px/1 var(--sans);cursor:pointer}
.motion-btn .mstate{font-weight:800;color:var(--ink)}
.nav .motion-btn{display:none}
.nav.open .motion-btn{display:inline-flex;margin:8px 16px 12px}
footer.site .motion-btn{margin-top:14px}

/* ---------- orange, dialled back: hero button, pricing accents and the dock icons stay ---------- */
.demo .arrow span{color:var(--on-stage2)}
.stage.close .cta{background:#fff;border-color:#fff;color:var(--stage);box-shadow:none}
.pricectl .toggle{box-shadow:none;border:1px solid var(--rule)}
.plan.pick{box-shadow:var(--sh-front)}
.plan .tag.hl{position:static;transform:none;background:var(--coral);color:#1A0D08;padding:6px 10px;border-radius:999px;font:700 12px/1 var(--sans);white-space:nowrap}

/* ---------- layers: glow behind, text in the middle, the sample card floats in front of the film ---------- */
.film{padding-bottom:104px}
.filmbox{box-shadow:var(--sh-front)}
.try{position:relative;z-index:5;margin-top:-64px;padding:0 0 46px}
.trycard{max-width:760px;margin:0 auto;background:var(--card);border:1px solid var(--rule);border-radius:var(--r2);padding:22px;box-shadow:var(--sh-front)}
.trycard h2{font-size:clamp(24px,5.5vw,32px);margin:0 0 14px;text-wrap:balance}
.trycard textarea{width:100%;min-height:96px;padding:14px;border-radius:14px;border:1px solid var(--rule);background:var(--paper);color:var(--ink);font:inherit;font-size:16px;resize:vertical;display:block}
.trytools{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0 0}
.tool{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;border-radius:999px;border:1px solid var(--rule);background:var(--card);font:700 14px/1 var(--sans);color:var(--ink);cursor:pointer}
.tool svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.tool[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}
.tool[hidden]{display:none}
.tryfiles{list-style:none;padding:0;margin:10px 0 0;display:flex;gap:8px;flex-wrap:wrap}
.tryfiles[hidden]{display:none}
.tryfiles li{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:6px 6px 6px 12px;border-radius:999px;background:var(--paper2);font-size:13px;font-weight:600}
.tryfiles span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:220px}
.tryfiles button{min-width:32px;min-height:32px;border-radius:50%;border:0;background:#fff;color:var(--ink2);font-size:16px;line-height:1;cursor:pointer}
.tryact{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-top:16px}
.trysay{font-size:14px;color:var(--coral-ink,#C2381A);min-height:1.2em;margin:10px 0 0}
.tryout{margin-top:16px;padding:16px;border-radius:14px;background:var(--paper);border:1px dashed var(--rule)}
.tryout[hidden]{display:none}
.tryout pre{white-space:pre-wrap;word-break:break-word;font:400 14.5px/1.55 var(--mono);margin:0 0 14px;color:var(--ink)}
.tryout .row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.trycard .fine{margin:14px 0 0;color:var(--ink3)}

/* ---------- pricing: plans swipe sideways on phones and tablets, one card in view at a time ---------- */
@media (max-width:900px){
  .plans,.plans.four{display:flex!important;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding:16px 18px 22px;margin:0 -18px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .plans::-webkit-scrollbar{display:none}
  .plan{flex:0 0 78%;max-width:340px;scroll-snap-align:center}
  .plan.pick{transform:none}
}

/* ---------- app feel on touch screens: no grey tap flash, no double-tap zoom delay, press feedback, notch-safe edges ---------- */
@media (hover:none) and (pointer:coarse){
  html{-webkit-tap-highlight-color:transparent;overscroll-behavior-x:none}
  a,button,summary,.tool,.plan,.case{touch-action:manipulation}
  .btn:active,.tool:active,.motion-btn:active,.dock a:active,.toggle button:active{transform:scale(.97)}
  footer.site nav a,footer.site .fine a{display:inline-flex;align-items:center;min-height:44px}
}

/* ---------- section dock (phones): the orange icons ---------- */
.dock{display:none}
/* Same phone test as the old bottom tab bar in site.css; that bar is switched off here so only one bar sits at the bottom. */
@media (max-width:760px),(max-width:1000px) and (max-height:500px){
  .top .nav{display:none}
  /* Three-line menu (Ray, 2026-11-13): sits between the logo and the dark-mode button. The dock keeps How it works, Try it and
     Pricing; the menu holds the rest (Use cases, Prompt library, Learn, Merch), so nothing appears twice. */
  .top .acct .btn.menu,.top.over:not(.solid) .acct .btn.menu{display:inline-flex;order:-1;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;padding:0;border:1px solid var(--rule);border-radius:999px;background:var(--card);color:var(--ink);font-size:0;line-height:0;gap:0}
  /* gap:0 above centres the three lines (the hidden word "Menu" kept the button's 9px gap and pushed them left). Ray, 2026-11-13 */
  .top .acct .btn.menu::before{content:"";width:18px;height:2px;border-radius:2px;background:currentColor;box-shadow:0 -6px 0 currentColor,0 6px 0 currentColor}
  .top .nav.open,.top.over:not(.solid) .nav.open{display:flex;flex-direction:column;gap:2px;position:fixed;top:72px;bottom:auto;left:12px;right:12px;justify-self:stretch;width:auto;max-width:none;z-index:70;padding:8px;border:1px solid var(--rule);border-radius:16px;background:var(--card);box-shadow:0 18px 40px -20px rgba(21,19,28,.55)}
  .top .nav.open a,.top.over:not(.solid) .nav.open a{flex-direction:row;justify-content:flex-start;min-height:48px;padding:0 14px;border-radius:10px;background:none;color:var(--ink);font:600 16px/1.2 var(--sans);text-align:left}
  .top .nav.open a:hover,.top.over:not(.solid) .nav.open a:hover{background:var(--paper2);color:var(--ink)}
  .top .nav.open a::before,.top .nav.open a::after{content:none}
  .top .nav.open a[href="#how"],.top .nav.open a[href="#pricing"]{display:none}
}
@media (max-width:820px),(max-width:1000px) and (max-height:500px){
  /* docked, like an app tab bar: full width, flush to the bottom edge, solid, with room for the home bar; the page ends above it */
  body{padding-bottom:calc(66px + env(safe-area-inset-bottom,0px))}
  .dock{position:fixed;left:0;right:0;bottom:0;z-index:60;display:flex;justify-content:space-around;max-width:none;margin:0;padding:6px 8px calc(6px + env(safe-area-inset-bottom,0px));border-radius:0;background:var(--card);border:0;border-top:1px solid var(--rule);box-shadow:none}
  html.dark .dock{background:var(--card)}
  .dock a{flex:1;min-height:52px;display:grid;place-items:center;align-content:center;gap:2px;font-size:11px;font-weight:600;color:var(--ink2);border-radius:14px;text-decoration:none}
  .dock svg{width:22px;height:22px;stroke:var(--coral);fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
  .dock a[aria-current=true]{background:var(--paper2);color:var(--ink);font-weight:800}
}

/* ---------- hero sample card grows with its writing: a part that has not appeared yet takes no room (Ray, 2026-11-10) ---------- */
.demo.anim .arrow,.demo.anim .pout,.demo.anim .skills,.demo.anim .stubrow{display:none}
.demo.anim.s2 .arrow{display:flex}
.demo.anim.s2 .pout{display:block}
.demo.anim.s3 .skills{display:flex}
.demo.anim.s4 .stubrow{display:flex}
@keyframes demoRise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes demoPop{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}
.demo.anim.s2 .arrow,.demo.anim.s2 .pout{animation:demoRise .5s var(--ease) both}
.demo.anim.s2 .sec{animation:demoRise .5s var(--ease) .15s both}
.demo.anim.s2 .sec:nth-child(2){animation-delay:.37s}
.demo.anim.s2 .sec:nth-child(3){animation-delay:.59s}
.demo.anim.s2 .sec:nth-child(4){animation-delay:.81s}
.demo.anim.s3 .skills .lab,.demo.anim.s3 .sk{animation:demoRise .45s var(--ease) both}
.demo.anim.s3 .sk:nth-child(3){animation-delay:.15s}
.demo.anim.s3 .sk:nth-child(4){animation-delay:.3s}
.demo.anim.s4 .stubrow{animation:demoPop .5s var(--ease) both}

/* ---------- crisp, readable colours (Ray, 2026-11-10): no orange glow, strong outlines. The hero stays dark navy in both modes. ---------- */
.btn.coral,.cta{box-shadow:none;border-color:#B8330F;color:#1A0D08;-webkit-font-smoothing:antialiased}
html.dark .btn.coral,html.dark .cta{background:#FF6A45;border-color:#FF6A45;color:#140A06}
.hero .btn.ghost,html.dark .btn.ghost{border-color:rgba(246,243,255,.7);color:#F6F3FF}
html.dark .lovabadge .fl{color:#FFA283}
html.dark .top .btn.ink,html.dark .top.over .btn.ink{background:#fff;border-color:#fff;color:#12102A}
html.dark .top .btn.hide-sm{color:#F6F3FF}
