:root {
  --bg: #f7f5f1;
  --ink: #111;
  --muted: #555;
  --line: #e7e0d8;
  --card: #fff;
  --accent: #f04e23;
  --accent-dark: #c63c17;
  --night: #17130f;
  --night-2: #221c17;
  --cream: #f7efe6;
  --shadow: 0 18px 44px rgba(0, 0, 0, .07);
}
* { box-sizing: border-box; margin: 0; }
[hidden] { display: none !important; }
html, body { overflow-x: hidden; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font: 16px/1.5 Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; }

/* Nav (sits on the dark stage) */
.nav { position: absolute; top: 0; left: 0; right: 0; z-index: 5; max-width: 1240px; margin: 0 auto; padding: 22px 28px; display: flex; align-items: center; gap: 24px; color: var(--cream); }
.wm { display: inline-flex; align-items: flex-end; gap: .25em; color: inherit; }
.wm-head { display: block; margin-bottom: 2px; }
.wm .word { position: relative; font-family: Yellowtail, cursive; font-size: 38px; line-height: 1; white-space: nowrap; padding-bottom: .12em; }
.wm .word b { font-weight: 400; color: var(--accent); }
.wm .swash { position: absolute; left: -.05em; width: calc(100% + .12em); bottom: -.04em; height: .3em; }
.links { margin: 0 auto; display: flex; gap: 28px; font-size: 15px; opacity: .85; }
.links a:hover { color: var(--accent); opacity: 1; }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.btn-accent { background: var(--accent); color: #fff; border-radius: 999px; padding: 11px 20px; font-weight: 700; font-size: 15px; }
.btn-accent:hover { background: #ff5f35; }
.btn-dark { background: var(--ink); color: #fff; border-radius: 999px; padding: 11px 20px; font-weight: 600; font-size: 15px; }
.btn-ghost { font-weight: 600; font-size: 15px; padding: 10px 6px; background: none; color: inherit; }
.btn-ghost.light { color: var(--cream); opacity: .85; }

/* Pill CTA */
.pill { display: inline-flex; align-items: center; gap: 14px; background: var(--accent); color: #fff; border-radius: 999px; padding: 8px 8px 8px 24px; font-weight: 700; font-size: 17px; box-shadow: 0 16px 36px rgba(240, 78, 35, .35); transition: transform .15s; }
.pill:hover { transform: translateY(-1px); }
.pill .arrow { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--accent); display: grid; place-items: center; font-size: 20px; }
.pill.light { background: var(--cream); color: var(--ink); box-shadow: none; }
.pill.light .arrow { background: var(--accent); color: #fff; }
.pill.small { font-size: 15px; padding: 6px 6px 6px 18px; }
.pill.small .arrow { width: 32px; height: 32px; }
.pill.full { width: 100%; justify-content: space-between; }

/* Stage: dark hero, Ratchet behind the counter */
.stage { position: relative; background: radial-gradient(120% 90% at 70% 40%, var(--night-2), var(--night) 60%); color: var(--cream); padding: 120px 28px 0; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; max-width: none; }
.stage > * { min-width: 0; }
.stage-glow { position: absolute; width: 760px; height: 760px; right: -80px; top: 40px; background: radial-gradient(circle, rgba(240, 78, 35, .32), rgba(240, 78, 35, 0) 62%); pointer-events: none; }
.stage-copy { position: relative; z-index: 2; max-width: 600px; justify-self: end; padding: 40px 0 176px; }
.hey { font-family: Yellowtail, cursive; color: var(--accent); font-size: clamp(64px, 8vw, 110px); line-height: .8; transform: rotate(-6deg); transform-origin: left bottom; margin-bottom: 4px; }
h1 { font-size: clamp(44px, 5.6vw, 78px); line-height: 1; letter-spacing: -2.4px; font-weight: 900; }
h1 span { display: block; color: rgba(247, 239, 230, .5); }
.sub { margin-top: 22px; font-size: 18px; color: rgba(247, 239, 230, .78); max-width: 520px; }
.stage-cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.fine { margin-top: 16px; font-size: 12.5px; color: rgba(247, 239, 230, .5); }

/* Sample call player (inline on the stage) */
.call { flex: 1 1 280px; min-width: 260px; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; padding: 10px 14px 10px 10px; }
.call-play { width: 44px; height: 44px; border-radius: 50%; background: var(--cream); color: var(--ink); font-size: 15px; display: grid; place-items: center; }
.call-play span { margin-left: 2px; }
.call-play.on span { margin: 0; }
.call-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; }
.call-head small { font-weight: 600; font-size: 12.5px; }
.call-time { color: rgba(247, 239, 230, .55); font-variant-numeric: tabular-nums; }
.call-wave { height: 22px; display: flex; align-items: center; gap: 2px; cursor: pointer; margin-top: 4px; }
.call-wave i { flex: 1; border-radius: 2px; background: rgba(247, 239, 230, .22); transition: background .2s; }
.call-wave i.done { background: var(--accent); }
.call-line { grid-column: 1 / -1; font-size: 13px; line-height: 1.4; color: rgba(247, 239, 230, .78); min-height: 36px; padding: 0 4px; }
.call-line b { color: var(--accent); }

/* Counter scene */
.counter-scene { position: relative; align-self: end; height: 640px; max-width: 640px; width: 100%; }
.ratchet { position: absolute; left: 50%; bottom: 112px; width: 360px; transform: translateX(-50%); overflow: visible; }
.desk { position: absolute; left: -130%; bottom: 0; height: 132px; width: 280%; }
.desk-props { position: absolute; left: 10%; right: 6%; bottom: 112px; display: flex; justify-content: space-between; align-items: flex-end; pointer-events: none; }
.bell { font-size: 44px; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); transform-origin: 50% 100%; }
.desk-sign { background: var(--cream); color: var(--ink); font-weight: 800; font-size: 12px; line-height: 1.1; text-transform: uppercase; letter-spacing: 1px; padding: 8px 12px; border-radius: 8px; border: 3px solid #111; transform: rotate(4deg); }
.feed { position: absolute; inset: 0 -6% 140px; pointer-events: none; }
.ticket { position: absolute; display: flex; gap: 10px; align-items: center; background: var(--cream); color: var(--ink); border: 3px solid #111; border-radius: 16px; padding: 9px 13px; font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 6px 6px 0 #111; opacity: 0; }
.ticket i { font-style: normal; font-size: 18px; }
.ticket small { display: block; font-weight: 500; color: #666; font-size: 11.5px; }
.stage-proof { grid-column: 1 / -1; position: relative; z-index: 3; margin: 0 -28px; padding: 14px 28px; background: #0e0b09; color: rgba(247, 239, 230, .75); font-size: 14px; text-align: center; }
.stage-proof b { color: var(--cream); }
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #35d07f; margin-right: 10px; box-shadow: 0 0 0 0 rgba(53, 208, 127, .6); animation: pulse 1.8s infinite; vertical-align: middle; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(53, 208, 127, 0); } 100% { box-shadow: 0 0 0 0 rgba(53, 208, 127, 0); } }

/* Shop systems row */
.works { max-width: 1000px; margin: 48px auto 0; padding: 0 24px; text-align: center; }
.eyebrow { font-size: 12px; letter-spacing: 1.2px; color: #666; margin-bottom: 14px; }
.wordmarks { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; }
.wordmarks li { font-weight: 800; font-size: 20px; letter-spacing: -.4px; color: #8a847d; }
.works .fine { color: #777; margin-top: 12px; font-size: 14px; }

/* A day with Ratchet */
.day h2 { margin-bottom: 30px; }
.day-grid { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
.timeline { list-style: none; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 33px; top: 10px; bottom: 10px; width: 2px; background: repeating-linear-gradient(#d3c8bc 0 6px, transparent 6px 12px); }
.timeline button { position: relative; display: grid; grid-template-columns: 68px 1fr; column-gap: 12px; width: 100%; text-align: left; background: none; padding: 12px 14px 12px 0; border-radius: 16px; color: var(--ink); transition: background .2s; }
.timeline button:hover { background: #efe9e2; }
.timeline time { grid-row: 1 / span 2; justify-self: center; align-self: start; z-index: 1; background: var(--bg); border: 2px solid #d3c8bc; border-radius: 999px; padding: 3px 9px; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.timeline b { font-size: 16px; }
.timeline span { color: var(--muted); font-size: 13.5px; }
.timeline button[aria-selected=true] { background: var(--ink); color: #fff; }
.timeline button[aria-selected=true] span { color: rgba(255, 255, 255, .7); }
.timeline button[aria-selected=true] time { background: var(--accent); border-color: var(--accent); color: #fff; }
.day .demo { margin-top: 0; }

/* Mock demo panel */
.demo { margin-top: 18px; display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: center; background: #efebe6; border-radius: 28px; padding: 36px 40px; text-align: left; }
.demo-kicker { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.demo-pitch { margin-top: 8px; font-size: 26px; line-height: 1.2; font-weight: 800; letter-spacing: -.6px; }
.demo-dots { display: flex; gap: 6px; margin-top: 18px; }
.demo-dots i { height: 6px; width: 16px; border-radius: 6px; background: rgba(0,0,0,.15); transition: all .3s; }
.demo-dots i.on { width: 30px; background: var(--accent); }
.demo-hint { margin-top: 14px; min-height: 48px; color: #555; font-size: 15px; }
.demo-hint b { color: var(--ink); }
.demo-actions { display: flex; gap: 12px; align-items: center; margin-top: 6px; }
.phone { width: 300px; height: 560px; margin: 0 auto; background: #111; border-radius: 44px; padding: 12px; box-shadow: 0 30px 60px rgba(0,0,0,.18); }
.phone-screen { height: 100%; border-radius: 34px; background: #fff; overflow: hidden; position: relative; display: flex; flex-direction: column; font-size: 14px; }
.ms-top { padding: 18px 18px 10px; font-weight: 700; font-size: 15px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid #eee; }
.ms-top small { font-weight: 500; color: #888; font-size: 12px; }
.ms-body { flex: 1; padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.ms-card { border: 1px solid #eee; border-radius: 16px; padding: 12px 14px; }
.ms-card b { display: block; font-size: 14px; }
.ms-card span { color: #777; font-size: 12.5px; }
.ms-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ms-bubble { max-width: 82%; padding: 9px 12px; border-radius: 16px; font-size: 13px; line-height: 1.35; animation: pop .35s ease both; }
.ms-bubble.in { background: #f1f1f1; align-self: flex-start; border-bottom-left-radius: 4px; }
.ms-bubble.out { background: var(--ink); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.ms-btn { display: block; width: 100%; border-radius: 14px; padding: 12px; font-weight: 700; font-size: 14px; background: #f3f3f3; color: var(--ink); text-align: center; }
.ms-btn.go { background: var(--accent); color: #fff; }
.ms-btn.dark { background: var(--ink); color: #fff; }
.hot { position: relative; animation: hot 1.4s ease-in-out infinite; }
.ms-chip { display: inline-block; border: 1px solid #e5e5e5; border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; margin: 0 6px 6px 0; background: #fff; }
.ms-chip.pick { background: var(--ink); color: #fff; border-color: var(--ink); }
.ms-tag { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 7px; }
.ms-tag.red { background: #fde4dc; color: #c63c17; } .ms-tag.yel { background: #fff3cf; color: #9a6b00; } .ms-tag.grn { background: #dff4e6; color: #1d8a47; }
.ms-photo { height: 110px; border-radius: 14px; background: linear-gradient(135deg,#3a3a3a,#777); display: grid; place-items: center; color: #fff; font-size: 12px; }
.ms-call { flex: 1; background: linear-gradient(180deg,#1b1b1b,#333); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px; }
.ms-call .ring { width: 86px; height: 86px; border-radius: 50%; background: rgba(240,78,35,.18); display: grid; place-items: center; animation: ring 1.6s ease-out infinite; font-size: 34px; }
.ms-big { font-size: 30px; font-weight: 800; letter-spacing: -.8px; white-space: nowrap; }
.ms-call .ms-big { font-size: 26px; }
.ms-ok { width: 54px; height: 54px; border-radius: 50%; background: #dff4e6; color: #1d8a47; display: grid; place-items: center; font-size: 26px; margin: 8px auto; animation: pop .35s ease both; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes hot { 0%,100% { box-shadow: 0 0 0 0 rgba(240,78,35,.55); } 50% { box-shadow: 0 0 0 8px rgba(240,78,35,0); } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(240,78,35,.5); } 100% { box-shadow: 0 0 0 26px rgba(240,78,35,0); } }
@media (prefers-reduced-motion: reduce) { .hot, .ms-call .ring, .ms-bubble, .ms-ok { animation: none; } .go, .wheel-list li { transition: none; } }

/* Sections */
.section { max-width: 1100px; margin: 0 auto; padding: 90px 24px 0; }
.section h2 { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -1.2px; line-height: 1.1; max-width: 640px; }
.lead { color: var(--muted); margin-top: 10px; }
.grid { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid article, .plans article { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 24px; }
.grid h3 { font-size: 18px; margin-bottom: 6px; }
.grid p { color: var(--muted); font-size: 15px; }
.how ol { list-style: none; padding: 0; margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.how li b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: #fff; margin-bottom: 12px; }
.how p { color: var(--muted); }
.plans { margin-top: 30px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plans article { display: flex; flex-direction: column; position: relative; }
.plans .for { color: var(--muted); margin-bottom: 14px; }
.plans ul { padding-left: 18px; color: #333; margin-bottom: 22px; flex: 1; line-height: 1.9; }
.plans .featured { border: 2px solid var(--ink); }
.badge { position: absolute; top: -12px; left: 24px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin-top: 12px; }
.faq details:first-of-type { margin-top: 30px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { color: var(--muted); margin-top: 8px; }

/* Signup dialog */
dialog { border: 0; border-radius: 24px; padding: 0; width: min(520px, calc(100vw - 24px)); box-shadow: 0 30px 80px rgba(0, 0, 0, .25); }
dialog::backdrop { background: rgba(17, 17, 17, .45); }
#flow-form { padding: 28px; position: relative; }
.x { position: absolute; top: 12px; right: 14px; background: none; font-size: 28px; line-height: 1; color: #888; }
.steps { display: flex; gap: 6px; margin-bottom: 18px; }
.steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.steps i.on { background: var(--accent); }
#flow h2 { font-size: 26px; letter-spacing: -.6px; margin-bottom: 14px; }
#flow label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
#flow input:not([type=radio]), #flow select, #flow textarea { display: block; width: 100%; margin-top: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; font: inherit; font-size: 16px; background: #fff; }
#flow input:focus, #flow select:focus, #flow textarea:focus { outline: 2px solid rgba(240, 78, 35, .35); border-color: var(--accent); }
.opt { font-weight: 400; color: #888; }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.choose { display: grid; gap: 10px; margin-bottom: 16px; }
.choose label { margin: 0 !important; }
.choose input { position: absolute; opacity: 0; }
.choose span { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-weight: 500; }
.choose b { margin-right: 6px; }
.choose input:checked + span { border: 2px solid var(--ink); padding: 13px 15px; }
.choose input:focus-visible + span { outline: 2px solid var(--accent); }
.row { display: flex; justify-content: space-between; align-items: center; }
.err { color: var(--accent-dark); font-weight: 500; margin-top: 12px; }
.muted { color: var(--muted); margin-bottom: 18px; }
.done { text-align: center; }
.check { width: 56px; height: 56px; margin: 4px auto 14px; border-radius: 50%; background: #e7f6ec; color: #1d8a47; display: grid; place-items: center; font-size: 26px; }

/* Final CTA: Ratchet asks for the job */
.final { margin: 100px auto 0; max-width: 1100px; background: var(--night); color: var(--cream); border-radius: 32px; padding: 48px 56px; display: flex; align-items: center; gap: 40px; }
.final h2 { font-size: clamp(34px, 4vw, 54px); letter-spacing: -1.4px; line-height: 1; font-weight: 900; }
.final p { margin-top: 10px; color: rgba(247, 239, 230, .7); }
.final-cta { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.final-fox { flex: none; filter: drop-shadow(0 18px 30px rgba(240, 78, 35, .35)); }
.foot { max-width: 1100px; margin: 0 auto; padding: 40px 24px; display: flex; justify-content: space-between; color: #777; font-size: 14px; }

@media (prefers-reduced-motion: reduce) { .hot, .ms-call .ring, .ms-bubble, .ms-ok, .pulse { animation: none; } }

/* Tablet */
@media (max-width: 1020px) {
  .links { display: none; }
  .nav-cta { margin-left: auto; }
  .stage { grid-template-columns: 1fr; padding-top: 110px; }
  .stage-copy { justify-self: start; padding-bottom: 10px; }
  .counter-scene { justify-self: center; height: 520px; }
  .ratchet { width: 300px; }
  .day-grid { grid-template-columns: 1fr; }
  .timeline { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; }
  .timeline::before { display: none; }
  .timeline li { flex: 0 0 220px; }
  .grid, .plans, .how ol { grid-template-columns: 1fr 1fr; }
  .demo { grid-template-columns: 1fr; padding: 28px 20px; gap: 24px; }
}
/* Phone */
@media (max-width: 640px) {
  .nav { padding: 16px; gap: 12px; }
  .nav .btn-ghost { display: none; }
  .nav .btn-accent { padding: 10px 14px; font-size: 14px; }
  .wm .word { font-size: 28px; }
  .wm-head { width: 36px; height: 36px; }
  .stage { padding: 96px 16px 0; }
  .stage-proof { margin: 0 -16px; padding: 12px 16px; font-size: 13px; }
  h1 { font-size: 42px; letter-spacing: -1.4px; }
  .counter-scene { height: 440px; }
  .ratchet { width: 250px; bottom: 96px; }
  .desk { height: 112px; }
  .desk-props { bottom: 96px; }
  .bell { font-size: 34px; }
  .grid, .plans, .how ol { grid-template-columns: 1fr; }
  .section { padding: 64px 16px 0; }
  .works { padding: 0 16px; }
  .final { margin: 64px 16px 0; padding: 32px 22px; flex-direction: column; text-align: center; }
  .final-cta { justify-content: center; }
  .foot { flex-direction: column; gap: 6px; padding: 32px 16px; }
  .two { grid-template-columns: 1fr; }
  .phone { width: 280px; height: 520px; }
  .demo-pitch { font-size: 22px; }
  dialog { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 22px 22px 0 0; }
}
