/* Phone / touch layer shared by every page.
   Everything here is either hidden on desktop (.fr-menu), scoped to max-width: 900px,
   or scoped to touch input, so the >=901px layout is untouched. */

.fr-menu{display:none}

@media (max-width: 900px){
  /* ---- top bar: logo · Get the app · menu, with safe-area insets ---- */
  .fr-bar>div{box-sizing:border-box;height:68px;padding:12px max(16px, env(safe-area-inset-right)) 12px max(16px, env(safe-area-inset-left)) !important;gap:8px !important}
  .fr-bar>div>a.ht-link{min-height:44px;min-width:44px}
  .fr-bar .ht-pill{height:44px !important;padding:0 18px !important}
  .fr-menu{position:relative;display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;width:44px;height:44px;margin:0 0 0 8px;padding:0;border:1px solid #d9cab2;border-radius:999px;background:#fffcf6;color:#15120f;cursor:pointer;-webkit-tap-highlight-color:transparent}
  .fr-menu i{position:absolute;left:13px;width:16px;height:1.75px;border-radius:2px;background:currentColor;transition:transform .25s ease,top .25s ease}
  .fr-menu i:first-child{top:17px}
  .fr-menu i:last-child{top:24px}
  html.fr-nav-open .fr-menu i:first-child{top:20.5px;transform:rotate(45deg)}
  html.fr-nav-open .fr-menu i:last-child{top:20.5px;transform:rotate(-45deg)}
  .fr-menu:focus-visible{outline:2px solid #15120f;outline-offset:3px}

  /* the nav becomes a paper sheet that drops from the bar */
  .fr-bar .ht-nav{display:none !important;position:fixed;left:0;right:0;top:68px;margin:0 !important;padding:6px max(20px, env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));flex-direction:column !important;flex-wrap:nowrap !important;align-items:stretch !important;gap:0 !important;overflow:auto !important;max-height:calc(100vh - 68px);max-height:calc(100svh - 68px);box-sizing:border-box;font-size:30px !important;letter-spacing:-0.035em !important;background-color:#f5eee3;background-image:linear-gradient(#e9dfcf 1px,transparent 1px),linear-gradient(90deg,#e9dfcf 1px,transparent 1px);background-size:48px 48px;border-bottom:1px solid #e3d8c6;box-shadow:0 24px 40px rgba(58,40,28,.18)}
  html.fr-nav-open .fr-bar .ht-nav{display:flex !important;animation:frSheet .28s cubic-bezier(.2,.8,.2,1) both}
  .fr-bar .ht-nav a{display:flex !important;align-items:center;justify-content:space-between;min-height:60px;padding:0 2px !important;border-bottom:1px solid rgba(21,18,15,.14) !important;opacity:1 !important;white-space:nowrap;color:#15120f !important}
  .fr-bar .ht-nav a::after{content:"\2192";font-size:18px;color:#5c5247;letter-spacing:0}
  .fr-bar .ht-nav a[aria-current=page]{font-family:'Instrument Serif','Times New Roman',Georgia,serif;font-style:italic;font-weight:400;letter-spacing:-0.01em}
  .fr-bar .ht-nav a[aria-current=page]::after{content:"you're here";font-family:'Instrument Sans','Helvetica Neue',Arial,sans-serif;font-style:normal;font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:#a9482a}
  html.fr-nav-open{overflow:hidden}
  html.fr-nav-open body::after{content:"";position:fixed;left:0;right:0;top:68px;bottom:0;z-index:39;background:rgba(21,18,15,.22)}
  @keyframes frSheet{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}

  /* footers: bigger link targets, room for the home indicator */
  footer>div{padding-bottom:calc(40px + env(safe-area-inset-bottom)) !important}
  footer a{display:inline-flex;align-items:center;min-height:44px}
}
@media (max-width: 380px){
  .fr-bar .ht-pill{padding:0 14px !important;font-size:14px !important}
}

/* "how it works" rows (templates + creators club): one column, phones that fit the screen */
@media (max-width: 900px){
  [data-cc-step]{min-height:0 !important;gap:28px !important;padding:44px 0 !important}
  [data-cc-step] .cc-float{right:-14px !important;top:58px !important}
  [data-cc-step] .cc-float-2{left:-14px !important;top:410px !important}
}
@media (max-width: 640px){.cc-pair{transform:none !important;zoom:.72}}
@media (max-width: 440px){.cc-pair{zoom:.66}}
@media (max-width: 380px){.cc-pair{zoom:.6}}

/* hover-only effects: only where a real hover exists */
@media (hover: none){
  .ht-pill:hover{transform:none !important}
}

@media (prefers-reduced-motion: reduce){
  html.fr-nav-open .fr-bar .ht-nav{animation:none}
  .fr-menu i{transition:none}
}
