/* =========================================================================
   Pocket — mobile-first simulator (RetreatsOS)
   Duolingo-style: big rounded buttons, generous padding, one focal element
   per screen, single confident accent (orange #F96815), bouncy reveals.
   Designed for ~375-414px; desktop opens in a centered phone frame.
   Font: Inter only. Brand palette per CLAUDE.md.
   ========================================================================= */

:root {
  --orange: #F96815;
  --orange-dark: #d9550c;
  --forest: #3D5A3D;
  --sage: #7A8B7E;
  --sand: #E8DED2;
  --clay: #C9A88C;
  --cream: #F8F5F1;
  --charcoal: #2C2C2C;
  --white: #ffffff;
  --shadow: 0 6px 0 rgba(0,0,0,0.10);
  --shadow-soft: 0 10px 30px rgba(44,44,44,0.10);
  --radius: 20px;
  --radius-lg: 28px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--charcoal);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

/* ---- desktop = centered phone frame ---------------------------------- */
.pocket-stage {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(1200px 600px at 50% -10%, #fff0e6 0%, var(--sand) 60%);
}

.pocket-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 480px) {
  .pocket-frame {
    min-height: 880px;
    height: 92vh;
    border-radius: 36px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0,0,0,0.04);
  }
}

/* ---- top bar: logo + progress --------------------------------------- */
.pocket-top {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 16px 20px 12px;
  background: var(--cream);
}
.pocket-top-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.pocket-logo { height: 26px; width: auto; display: block; }
.pocket-top-spacer { flex: 1; }
.pocket-restart {
  border: none;
  background: transparent;
  color: var(--sage);
  font: 600 13px/1 'Inter', sans-serif;
  cursor: pointer;
  padding: 6px 8px;
}
.pocket-progress {
  height: 14px;
  background: var(--sand);
  border-radius: 999px;
  overflow: hidden;
}
.pocket-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--orange), #ff8a3d);
  border-radius: 999px;
  transition: width .5s cubic-bezier(.34,1.56,.64,1);
}

/* ---- moment viewport ------------------------------------------------- */
.pocket-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 22px 24px;
}
.moment { display: none; animation: slideUp .42s cubic-bezier(.22,1,.36,1); }
.moment.active { display: block; }

@keyframes slideUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pop {
  0% { transform: scale(.7); opacity: 0; }
  60% { transform: scale(1.06); }
  100% { transform: scale(1); opacity: 1; }
}

.eyebrow {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin: 14px 0 10px;
}
.moment h1 {
  font-weight: 800;
  font-size: 27px;
  line-height: 1.18;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.moment .lede {
  font-size: 16px;
  line-height: 1.5;
  color: #5a5a5a;
  margin: 0 0 22px;
}

/* ---- choice cards ---------------------------------------------------- */
.cards { display: flex; flex-direction: column; gap: 14px; margin: 6px 0 8px; }
.card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  background: var(--white);
  border: 2.5px solid var(--sand);
  border-radius: var(--radius);
  padding: 18px 18px;
  cursor: pointer;
  transition: transform .12s, border-color .15s, box-shadow .15s;
  box-shadow: 0 4px 0 rgba(0,0,0,0.05);
}
.card:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,0.05); }
.card.selected {
  border-color: var(--orange);
  box-shadow: 0 4px 0 var(--orange-dark);
  background: #fff7f1;
}
.card .emoji { font-size: 30px; line-height: 1; }
.card .card-text { display: flex; flex-direction: column; }
.card .card-title { font-weight: 700; font-size: 17px; }
.card .card-sub { font-size: 13px; color: var(--sage); margin-top: 2px; }

/* ---- inputs ---------------------------------------------------------- */
.field { margin: 18px 0; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; color: #444; }

.bigput {
  width: 100%;
  font: 800 30px/1 'Inter', sans-serif;
  text-align: center;
  border: 2.5px solid var(--sand);
  border-radius: var(--radius);
  padding: 18px 14px;
  background: var(--white);
  color: var(--charcoal);
  outline: none;
  transition: border-color .15s;
}
.bigput:focus { border-color: var(--orange); }

.money-wrap { position: relative; }
.money-wrap .cur {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  font-weight: 800; font-size: 26px; color: var(--sage);
}
.money-wrap .bigput { padding-left: 44px; text-align: left; }

/* stepper counter */
.stepper { display: flex; align-items: center; justify-content: center; gap: 18px; }
.stepper button {
  width: 64px; height: 64px; border-radius: 50%;
  border: none; background: var(--orange); color: #fff;
  font-size: 32px; font-weight: 700; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 0 var(--orange-dark);
  transition: transform .1s;
}
.stepper button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--orange-dark); }
.stepper button:disabled { background: var(--clay); box-shadow: 0 4px 0 #a98a6e; opacity:.6; }
.stepper .count { font-weight: 800; font-size: 52px; min-width: 110px; text-align: center; }

/* slider */
.slider-val { text-align: center; font-weight: 800; font-size: 46px; color: var(--orange); margin-bottom: 4px; }
.slider-wrap { padding: 6px 2px 0; }
input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 14px; border-radius: 999px;
  background: var(--sand); outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--orange); cursor: pointer;
  border: 4px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
input[type=range]::-moz-range-thumb {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--orange); cursor: pointer; border: 4px solid #fff;
}
.slider-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--sage); margin-top: 8px; }

.two-up { display: flex; gap: 14px; }
.two-up .field { flex: 1; margin-top: 6px; }

/* phone gate */
.phone-row { display: flex; gap: 10px; }
.phone-row select {
  font: 700 18px 'Inter', sans-serif;
  border: 2.5px solid var(--sand);
  border-radius: var(--radius);
  padding: 0 10px;
  background: var(--white);
  color: var(--charcoal);
  outline: none;
  min-width: 104px;
}
.phone-row select:focus { border-color: var(--orange); }
.phone-row .bigput { flex: 1; text-align: left; font-size: 22px; padding: 18px; }
.privacy { font-size: 13px; color: var(--sage); margin: 14px 2px 0; line-height: 1.45; }

/* ---- reveal moments -------------------------------------------------- */
.reveal-number {
  font-weight: 800;
  font-size: 56px;
  color: var(--forest);
  letter-spacing: -0.02em;
  margin: 8px 0 2px;
  animation: pop .55s cubic-bezier(.34,1.56,.64,1);
}
.reveal-number .cur { color: var(--sage); font-size: 38px; vertical-align: 6px; }
.reveal-label { font-size: 15px; color: var(--sage); font-weight: 600; margin-bottom: 18px; }

.insight {
  background: #fff7f1;
  border: 2px solid #ffd9bf;
  border-left: 6px solid var(--orange);
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 16px;
  line-height: 1.5;
  font-weight: 600;
  margin: 6px 0 8px;
  animation: slideUp .5s .2s both;
}
.insight .huh { display:block; font-size: 12px; letter-spacing:.1em; text-transform:uppercase; color: var(--orange); font-weight:700; margin-bottom:6px; }

.statline { display:flex; gap: 10px; margin: 16px 0 4px; }
.statline .stat {
  flex:1; background: var(--white); border:2px solid var(--sand);
  border-radius: 16px; padding: 14px; text-align:center;
}
.statline .stat .v { font-weight: 800; font-size: 22px; color: var(--charcoal); }
.statline .stat .l { font-size: 11.5px; color: var(--sage); margin-top: 4px; font-weight:600; }

.disclaimer { font-size: 12px; color: var(--sage); font-style: italic; margin: 14px 2px 0; line-height: 1.45; }

/* ---- finale / profile card ------------------------------------------ */
.profile {
  background: linear-gradient(160deg, var(--forest), #2c4530);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 26px 22px;
  margin: 8px 0 4px;
  box-shadow: var(--shadow-soft);
}
.profile .pf-eyebrow { font-size: 12px; letter-spacing:.14em; text-transform:uppercase; color: #cfe0d0; font-weight:700; }
.profile .pf-title { font-size: 26px; font-weight: 800; margin: 6px 0 2px; }
.profile .pf-sub { font-size: 14px; color: #cfe0d0; margin-bottom: 18px; }
.profile .pf-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.profile .pf-stat { background: rgba(255,255,255,0.10); border-radius: 14px; padding: 14px; }
.profile .pf-stat .v { font-weight: 800; font-size: 21px; }
.profile .pf-stat .l { font-size: 11.5px; color:#cfe0d0; margin-top:3px; font-weight:600; }
.profile .pf-insight {
  margin-top: 16px; background: rgba(249,104,21,0.18);
  border: 1px solid rgba(249,104,21,0.5); border-radius: 14px;
  padding: 14px; font-size: 14.5px; line-height: 1.5; font-weight:600;
}

.share-row { display:flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 6px; }
.share-btn {
  flex: 1 1 calc(50% - 5px);
  display:flex; align-items:center; justify-content:center; gap:8px;
  border: 2px solid var(--sand); background: var(--white);
  border-radius: 14px; padding: 13px; font-weight:700; font-size:14px;
  color: var(--charcoal); cursor:pointer; text-decoration:none;
}
.share-btn:active { transform: translateY(2px); }
.share-btn.wa { background:#25D366; color:#fff; border-color:#25D366; }
.share-btn.li { background:#0a66c2; color:#fff; border-color:#0a66c2; }

/* ---- bottom CTA bar -------------------------------------------------- */
.pocket-foot {
  position: sticky; bottom: 0;
  padding: 14px 22px calc(16px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(248,245,241,0), var(--cream) 30%);
}
.btn-primary {
  width: 100%; border: none; cursor: pointer;
  background: var(--orange); color: #fff;
  font: 800 18px 'Inter', sans-serif;
  padding: 17px; border-radius: var(--radius);
  box-shadow: 0 5px 0 var(--orange-dark);
  transition: transform .1s, box-shadow .1s, opacity .15s;
}
.btn-primary:active { transform: translateY(4px); box-shadow: 0 1px 0 var(--orange-dark); }
.btn-primary:disabled { background: var(--clay); box-shadow: 0 5px 0 #a98a6e; opacity:.65; cursor: not-allowed; }
.btn-ghost {
  width:100%; border:none; background:transparent; color: var(--sage);
  font: 600 14px 'Inter', sans-serif; padding: 10px; cursor:pointer; margin-top: 6px;
}

.site-foot { text-align:center; font-size:12px; color:var(--sage); padding: 18px; line-height:1.6; }
.site-foot a { color: var(--forest); font-weight:600; text-decoration:none; }

.err { color:#c0392b; font-size:13px; font-weight:600; margin-top:8px; min-height: 16px; }

/* a2hs hint */
.a2hs {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  background: var(--charcoal); color:#fff; border-radius: 16px;
  padding: 14px 16px; display:none; align-items:center; gap:12px;
  box-shadow: var(--shadow-soft); max-width: 408px; margin: 0 auto;
}
.a2hs.show { display:flex; }
.a2hs img { height: 30px; border-radius:8px; }
.a2hs .a2hs-txt { flex:1; font-size:13.5px; line-height:1.4; }
.a2hs button { background: var(--orange); border:none; color:#fff; font-weight:700; border-radius:10px; padding:8px 12px; cursor:pointer; }
.a2hs .x { background:transparent; color:#aaa; padding:6px; font-size:18px; }

/* loading dots */
.dots::after { content:''; animation: dots 1.2s steps(4,end) infinite; }
@keyframes dots { 0%{content:''} 25%{content:'.'} 50%{content:'..'} 75%{content:'...'} }

/* ===== shareable scenario page (server-rendered) ====================== */
.scn-wrap { max-width: 560px; margin: 0 auto; padding: 28px 20px 8px; }
.scn-logo { height: 30px; margin-bottom: 22px; }
input::placeholder,textarea::placeholder{color:rgba(31,41,55,0.28)!important;opacity:1!important;font-weight:400!important}input::-webkit-input-placeholder{color:rgba(31,41,55,0.28)!important;font-weight:400!important}input::-moz-placeholder{color:rgba(31,41,55,0.28)!important;font-weight:400!important;opacity:1!important}

/* W9-pocketpatch: platform-philosophy lines on reveal screens */
.pkt-platform-note {
  margin: 14px 0 0;
  padding: 10px 14px;
  background: rgba(249, 104, 21, 0.06);
  border-left: 3px solid #F96815;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #2C2C2C;
  font-weight: 500;
}

/* W9-pocketpatch: WhatsApp signup CTA on scenario card */
.pkt-wa-cta {
  display: block;
  background: #25D366;
  color: #fff !important;
  padding: 14px 18px;
  border-radius: 12px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  margin: 4px 0 10px;
  box-shadow: 0 2px 0 #128C7E;
}
.pkt-wa-cta:hover { background: #1FBA57; }
.pkt-wa-cta-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.92);
  font-weight: 500;
  margin-top: 2px;
  display: block;
}


/* 2026-06-08 namepatch: WhatsApp CTA prominence boost */
.pkt-wa-cta {
  padding: 18px 22px !important;
  font-size: 17px !important;
  border-radius: 14px !important;
  margin: 8px 0 14px !important;
  box-shadow: 0 4px 0 #128C7E, 0 8px 24px rgba(37, 211, 102, 0.25) !important;
  letter-spacing: 0.01em;
}
.pkt-wa-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 0 #128C7E, 0 10px 28px rgba(37, 211, 102, 0.3) !important;
}
.pkt-wa-cta-sub {
  font-size: 12px !important;
  margin-top: 4px !important;
  opacity: 0.95;
}


/* scenario-card secondary action (added by pocket-namefix) */
.pkt-secondary {
    display: block;
    text-align: center;
    text-decoration: none;
    margin-top: 10px;
    padding: 12px 18px;
    font-size: 15px;
    font-weight: 600;
    color: var(--charcoal, #2C2C2C);
    background: transparent;
    border: 1px solid var(--sand, #E8DED2);
    border-radius: 14px;
}
.pkt-secondary:hover { background: var(--cream, #F8F5F1); }

/* re-added 2026-06-08: platform-philosophy boxes */
.pkt-platform-note {
  margin: 14px 0 0;
  padding: 10px 14px;
  background: rgba(249, 104, 21, 0.06);
  border-left: 3px solid #F96815;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #2C2C2C;
  font-weight: 500;
}

/* re-added 2026-06-08: faded placeholder text */
input::placeholder, textarea::placeholder { color: rgba(31,41,55,0.28) !important; opacity: 1 !important; font-weight: 400 !important; }
input::-webkit-input-placeholder { color: rgba(31,41,55,0.28) !important; font-weight: 400 !important; }
input::-moz-placeholder { color: rgba(31,41,55,0.28) !important; font-weight: 400 !important; opacity: 1 !important; }
