/*
 * Jurisio Garden landing — mobile production layer.
 *
 * Source truth: src/garden-mobile.css plus the inline page reset from
 * Editions Landing - Garden Mobile.html. The preview-only phone bezel is
 * intentionally omitted. This layer applies through the approved 539px
 * mobile boundary; Garden selectors and values are otherwise preserved.
 */

@media not all and (min-width: 540px) {
html, body { margin: 0; padding: 0; }
.garden-menu-open { overflow: hidden; }
a { color: var(--gm-ink); }
a:hover { color: var(--gm-ink-2); }

/* ============================================================
   JURISIO — Garden landing, MOBILE
   A tall-format port of the desktop sunset landing. Full-bleed
   painting hero, floating cream header that solidifies on scroll,
   a warm proof band, stacked edition cards, dark CTA + footer.
   Scoped under .gm- so it never collides with the other mobile app.
   ============================================================ */

:root {
  --gm-bg:     #f6ede0;   /* warm cream page */
  --gm-ink:    #16241f;   /* deep pine ink   */
  --gm-ink-2:  #3a4a43;
  --gm-cream:  #f6ddb0;
  --gm-gold:   #f5a233;
  --gm-dark:   #12100a;   /* near-black warm */
  --gm-band:   #191911;   /* proof band      */

  --gm-font-display: "Newsreader", "Source Serif 4", Georgia, serif;
  --gm-font-sans:    "Geist", ui-sans-serif, system-ui, sans-serif;
  --gm-font-mono:    "Geist Mono", ui-monospace, monospace;
}

/* #app is the phone screen (non-scrolling). The inner .gm-scroll-area scrolls,
   which lets the menu overlay pin to the screen instead of scrolling away. */
#app { background: var(--gm-dark); }

.gm-app {
  min-height: 100%;
  background: var(--gm-bg);
  font-family: var(--gm-font-sans);
  color: var(--gm-ink);
  -webkit-font-smoothing: antialiased;
  position: relative;
}
.gm-scroll-area { position: relative; }
@media (min-width: 540px) {
  #app { overflow: hidden !important; }
  .gm-app { height: 100%; overflow: hidden; min-height: 0; }
  .gm-scroll-area { height: 100%; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
}
.gm-scroll-area { scrollbar-width: none; -ms-overflow-style: none; }
.gm-scroll-area::-webkit-scrollbar { width: 0; height: 0; display: none; }
.gm-app *, .gm-app *::before, .gm-app *::after { box-sizing: border-box; }
.gm-app a { text-decoration: none; color: inherit; -webkit-tap-highlight-color: transparent; }

/* ============================================================
   HEADER — floating cream pill; grows into a solid top bar on scroll
   ============================================================ */
.gm-head {
  position: sticky; top: 0; z-index: 40;
  padding: calc(var(--safe-top, 0px) + 10px) 12px 0;
  transition: padding 300ms cubic-bezier(.4,0,.2,1);
}
.gm-head-inner {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 9px 9px 16px;
  background: rgba(248,240,228,.86);
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(60,25,10,.20);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: border-radius 300ms cubic-bezier(.4,0,.2,1),
              background 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}
.gm-head.is-stuck { padding: 0; }
.gm-head.is-stuck .gm-head-inner {
  border-radius: 0;
  padding-top: calc(var(--safe-top, 0px) + 12px); padding-bottom: 12px;
  margin-top: calc(-1 * var(--safe-top, 0px));
  border-color: transparent;
  border-bottom: 1px solid rgba(60,25,10,.12);
  background: rgba(248,240,228,.97);
  box-shadow: 0 4px 16px rgba(60,25,10,.12);
}
.gm-brand { display: inline-flex; align-items: center; gap: 3px; }
.gm-brand img { width: 24px; height: 24px; object-fit: contain; transform: translateY(-1px); }
.gm-brand span {
  font-family: var(--gm-font-display); font-size: 19px; font-weight: 600;
  color: #000; letter-spacing: -0.015em;
}
.gm-head .sp { flex: 1; }
.gm-app .gm-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 15px; border-radius: 11px;
  background: var(--gm-ink); color: #fff;
  font-size: 13.5px; font-weight: 600; border: none;
}
.gm-cta:active { filter: brightness(1.2); }
.gm-menu-btn {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: none; border: none; color: var(--gm-ink);
}
.gm-menu-btn:active { background: rgba(22,36,31,.10); }

/* ── Slide-down menu sheet ─────────────────────────────────── */
.gm-menu-back {
  position: absolute; inset: 0; z-index: 60;
  background: rgba(18,16,10,.5);
  opacity: 0; pointer-events: none; transition: opacity 220ms ease;
  backdrop-filter: blur(2px);
}
@media not all and (min-width: 540px) { .gm-menu-back { position: fixed; } }
.gm-menu-back.open { opacity: 1; pointer-events: auto; }
.gm-menu {
  position: absolute; top: 0; left: 0; right: 0; z-index: 61;
  background: var(--gm-bg);
  border-radius: 0 0 22px 22px;
  padding: calc(var(--safe-top, 0px) + 16px) 18px 22px;
  transform: translateY(-102%);
  transition: transform 320ms cubic-bezier(.3,.8,.3,1);
  box-shadow: 0 20px 44px rgba(18,16,10,.3);
}
.gm-menu:focus { outline: none; }
.gm-menu.open { transform: translateY(0); }
@media not all and (min-width: 540px) { .gm-menu { position: fixed; } }
.gm-menu-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.gm-menu-close {
  width: 40px; height: 40px; border-radius: 11px; border: none;
  background: #F4EBDE; color: var(--gm-ink);
  display: grid; place-items: center;
}
.gm-menu nav { display: flex; flex-direction: column; }
.gm-menu nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 4px; font-family: var(--gm-font-display);
  font-size: 24px; letter-spacing: -0.01em; color: var(--gm-ink);
  border-bottom: 1px solid rgba(22,36,31,.1);
}
.gm-menu nav a .ar { color: rgba(22,36,31,.4); }
.gm-menu nav a:active { color: var(--gm-ink-2); }
.gm-menu-foot { display: flex; gap: 10px; margin-top: 18px; }
.gm-menu-foot a {
  flex: 1; text-align: center; padding: 14px; border-radius: 12px;
  font-size: 14px; font-weight: 600;
}
.gm-menu-foot .login { background: rgba(22,36,31,.06); color: var(--gm-ink); }
.gm-menu-foot .demo { background: var(--gm-ink); color: #fff; }

/* ============================================================
   HERO — full-bleed painting with copy pinned to the bottom
   ============================================================ */
.gm-hero {
  position: relative;
  margin-top: calc(-1 * (var(--safe-top, 0px) + 64px));   /* slide under the floating header + status bar */
  min-height: 100svh;
  min-height: 100%;
  overflow: hidden; isolation: isolate;
  background: #2a1608;
  display: flex; flex-direction: column; justify-content: flex-end;
}
@media (min-width: 540px) { .gm-hero { min-height: 874px; } }
@media not all and (min-width: 540px) { .gm-hero { min-height: 100svh; } }

.gm-hero-photo {
  position: absolute; top: 0; left: 0; right: 0; width: 100%; height: 72%;
  object-fit: cover; object-position: 60% 34%;   /* cover a shorter box → the full tree fits the width */
  /* feather the painting into the dark base so copy sits on solid warmth */
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  opacity: 0; transition: opacity 1000ms ease;
}
.gm-app.ready .gm-hero-photo { opacity: 1; }
.gm-hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(18,9,3,.86) 0%, rgba(18,9,3,.5) 26%, transparent 52%),
    linear-gradient(180deg, rgba(18,9,3,.32) 0%, transparent 22%);
}

.gm-hero-copy {
  position: relative; z-index: 3;
  padding: 0 22px calc(var(--safe-bottom, 0px) + 22px);
  transform: translateY(14px); opacity: 0;
  transition: transform 700ms cubic-bezier(.2,.7,.3,1) 200ms, opacity 700ms ease 200ms;
}
.gm-app.ready .gm-hero-copy { transform: translateY(0); opacity: 1; }

.gm-eyebrow {
  font-family: var(--gm-font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gm-cream);
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
}
.gm-eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gm-gold); }
.gm-hero-copy h1 {
  font-family: var(--gm-font-display); font-weight: 500;
  font-size: clamp(40px, 12vw, 54px); line-height: 0.98; letter-spacing: -0.03em;
  color: #fff; margin: 0 0 16px; text-wrap: balance;
  text-shadow: 0 2px 30px rgba(20,8,4,.6);
}
.gm-hero-copy h1 em { font-style: italic; color: var(--gm-cream); }
.gm-hero-copy p {
  font-size: 16.5px; font-weight: 500; line-height: 1.45;
  color: rgba(255,246,235,.95); margin: 0 0 24px; max-width: 34ch;
  text-shadow: 0 1px 16px rgba(20,8,4,.6);
}
.gm-hero-actions { display: flex; flex-direction: column; gap: 10px; }
.gm-app .gm-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 16px 22px; border-radius: 14px;
  background: #f8f0e4; color: var(--gm-ink);
  font-size: 15.5px; font-weight: 600; border: none;
  box-shadow: 0 10px 28px rgba(20,8,4,.4);
}
.gm-btn-primary:active { transform: translateY(1px); }
.gm-app .gm-btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 22px; border-radius: 14px;
  background: rgba(255,255,255,.12); color: #fff;
  border: 1px solid rgba(255,255,255,.4); font-size: 15px; font-weight: 500;
  backdrop-filter: blur(4px);
}
.gm-btn-ghost:active { background: rgba(255,255,255,.22); }

.gm-scroll {
  position: absolute; z-index: 3; left: 50%; bottom: calc(var(--safe-bottom, 0px) + 22px);
  transform: translateX(-50%);
  background: none; border: none; padding: 0;
  font-family: var(--gm-font-mono); font-size: 9px; letter-spacing: 0.2em;
  text-transform: uppercase; color: rgba(255,246,235,.8);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.gm-scroll .chev { animation: gm-bob 1500ms ease-in-out infinite; }
@keyframes gm-bob { 0%,100% { transform: translateY(0); } 45% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .gm-scroll .chev { animation: none; } }

/* ============================================================
   PROOF BAND — a quiet scrolling marquee of who uses Jurisio
   ============================================================ */
.gm-proof {
  background: var(--gm-band); overflow: hidden;
  padding: 15px 0;
  display: flex; flex-direction: column; gap: 9px;
}
.gm-proof .gp-label {
  padding: 0 20px; text-align: center;
  font-family: var(--gm-font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: rgba(246,221,176,.5);
}
.gm-proof .gp-marquee {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.gm-proof .gp-track {
  display: flex; align-items: center; gap: 30px; width: max-content;
  animation: gm-scroll 30s linear infinite;
}
.gm-proof .gp-mark {
  font-family: var(--gm-font-display); font-size: 17px; letter-spacing: -0.01em;
  color: rgba(246,221,176,.62); white-space: nowrap;
}
@keyframes gm-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .gm-proof .gp-track { animation: none; } }

/* ============================================================
   PRODUCTS — section intro + stacked edition photo cards
   ============================================================ */
.gm-prod { padding: 46px 20px 48px; background: #100d08; }
.gm-sec-eyebrow {
  font-family: var(--gm-font-mono); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--gm-ink-2);
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.gm-sec-eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gm-gold); }
.gm-prod h2 {
  font-family: var(--gm-font-display); font-weight: 400;
  font-size: clamp(32px, 9vw, 40px); line-height: 1.0; letter-spacing: -0.028em;
  color: #f6ede0; margin: 0 0 10px; text-wrap: balance;
}
.gm-prod .lede {
  font-size: 15.5px; line-height: 1.5; color: rgba(246,237,224,.62);
  margin: 0 0 26px; max-width: 40ch;
}
.gm-prod-cards { display: flex; flex-direction: column; gap: 14px; }
.gm-prod-card {
  position: relative; display: block; overflow: hidden;
  height: 260px; border-radius: 18px; isolation: isolate;
  box-shadow: 0 8px 22px rgba(60,25,10,.16);
}
.gm-prod-photo {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  transition: transform 600ms cubic-bezier(.2,.7,.3,1);
}
.gm-prod-card:active .gm-prod-photo { transform: scale(1.04); }
.gm-prod-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, rgba(15,8,3,.88) 2%, rgba(15,8,3,.42) 34%, transparent 62%);
}
.gm-prod-cap {
  position: absolute; z-index: 2; left: 20px; right: 18px; bottom: 20px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
}
.gm-prod-cap .txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gm-prod-cap .nm {
  font-family: var(--gm-font-display); font-size: 24px; font-weight: 500;
  letter-spacing: -0.015em; line-height: 1.05; color: var(--gm-gold);
}
.gm-prod-cap .rl { font-size: 12.5px; color: rgba(255,246,235,.88); }
.gm-prod-cap .go {
  flex-shrink: 0; width: 34px; height: 34px; border: none; background: none;
  color: #f6ede0; display: grid; place-items: center;
}

/* ============================================================
   CLOSING CTA — dark warm band that echoes the hero
   ============================================================ */
.gm-close {
  background: var(--gm-dark); color: #f6ede0;
  padding: 52px 24px 56px; text-align: left;
}
.gm-close h2 {
  font-family: var(--gm-font-display); font-weight: 400;
  font-size: clamp(30px, 8.5vw, 38px); line-height: 1.02; letter-spacing: -0.025em;
  margin: 0 0 12px; color: #f6ede0; text-wrap: balance;
}
.gm-close p {
  font-size: 15px; line-height: 1.5; color: rgba(246,237,224,.7);
  margin: 0 0 24px; max-width: 38ch;
}
.gm-close .gm-btn-primary { width: 100%; }

/* ============================================================
   FOOTER — condensed
   ============================================================ */
.gm-foot {
  background: #0d0b07; color: rgba(246,237,224,.7);
  padding: 34px 22px calc(var(--safe-bottom, 0px) + 30px);
}
.gm-foot-brand { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 22px; }
.gm-foot-brand img { width: 24px; height: 24px; object-fit: contain; }
.gm-foot-brand span { font-family: var(--gm-font-display); font-size: 20px; color: #f6ede0; font-weight: 500; }
.gm-foot-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px;
  padding-bottom: 24px; border-bottom: 1px solid rgba(246,237,224,.12);
}
.gm-foot-col .h {
  font-family: var(--gm-font-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: rgba(246,237,224,.42);
  margin-bottom: 12px;
}
.gm-foot-col a { display: block; font-size: 14px; color: rgba(246,237,224,.78); padding: 6px 0; }
.gm-foot-col a:active { color: #fff; }
.gm-foot-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-top: 20px;
}
.gm-foot-social { display: flex; gap: 8px; }
.gm-foot-social a {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; color: rgba(246,237,224,.7);
  background: rgba(246,237,224,.06);
}
.gm-foot-social a:active { color: #fff; }
.gm-foot-legal { font-size: 11.5px; color: rgba(246,237,224,.45); line-height: 1.5; text-align: right; }
}
