/* ============ One Marble — public site (landing, auth, privacy) in the Paper journal look ============ */
:root {
  --ink: #22305a;
  --ink-2: #4d5b8f;
  --paper: #fffdf6;
  --bg: #f7f1e3;
  --shade: #f3ead6;
  --pen: #d9480f;
  --good: #2b8a3e;
  --bad: #e03131;
  --blue: #1971c2;
  --hl-yellow: #ffe066;
  --hl-green: #b2f2bb;
  --hl-pink: #ffc9c9;
  --hl-blue: #a5d8ff;
  --wobble: 255px 15px 225px 15px / 15px 225px 15px 255px;
  --wobble-sm: 6px 14px 5px 16px / 15px 5px 14px 6px;
  --head: 'Caveat', 'Patrick Hand', cursive;
  --body: 'Patrick Hand', 'Comic Sans MS', cursive;
  --shadow: 2px 3px 0 rgba(34, 48, 90, .10), 0 10px 22px -12px rgba(80, 55, 15, .45);
  --m: 22px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); font-family: var(--body); font-size: 19px; line-height: 1.4;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(120, 100, 60, .32) 1.1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-tap-highlight-color: transparent;
}
a { color: var(--blue); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.hl { background: linear-gradient(transparent 55%, var(--hl-yellow) 55%, var(--hl-yellow) 92%, transparent 92%); padding: 0 .1em; }
.hl.green { background: linear-gradient(transparent 55%, var(--hl-green) 55%, var(--hl-green) 92%, transparent 92%); }
.hl.pink { background: linear-gradient(transparent 55%, var(--hl-pink) 55%, var(--hl-pink) 92%, transparent 92%); }
.hl.blue { background: linear-gradient(transparent 55%, var(--hl-blue) 55%, var(--hl-blue) 92%, transparent 92%); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: 20px; line-height: 1; color: var(--ink); text-decoration: none; cursor: pointer;
  background: var(--hl-yellow); border: 2px solid var(--ink); border-radius: var(--wobble-sm);
  padding: 12px 18px 13px; box-shadow: 3px 3px 0 var(--ink); transition: transform .08s, box-shadow .08s;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
@media (hover: hover) { .btn:hover { transform: translate(-1px, -1px) rotate(-.6deg); box-shadow: 4px 4px 0 var(--ink); } }
.btn:focus-visible { outline: 3px dashed var(--pen); outline-offset: 4px; }
.btn.white { background: var(--paper); }
.btn.green { background: var(--hl-green); }
.btn.blue { background: var(--hl-blue); }
.btn.big { font-size: 23px; padding: 15px 24px 16px; }
.btn.small { font-size: 17px; padding: 8px 12px 9px; box-shadow: 2px 2px 0 var(--ink); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn .g { width: 20px; height: 20px; flex: none; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); text-decoration: underline; cursor: pointer; }

/* ---------- paper sheet ---------- */
.sheet {
  position: relative; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--wobble-sm);
  box-shadow: var(--shadow); padding: 22px;
}
.sheet.tape::before {
  content: ''; position: absolute; top: -13px; left: 50%; width: 120px; height: 26px; transform: translateX(-50%) rotate(-2.5deg);
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 6px, transparent 6px 12px), var(--tape, rgba(255, 146, 168, .72));
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.tilt-l { transform: rotate(-1deg); }
.tilt-r { transform: rotate(.8deg); }

/* ---------- nav ---------- */
.nav { display: flex; align-items: center; gap: 18px; padding: 18px 0; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.logo b { font-family: var(--head); font-size: 34px; line-height: 1; }
.logo .dots { display: flex; gap: 3px; }
.logo .dots img { width: 18px; height: 18px; }
.nav a.plain { color: var(--ink); text-decoration: none; font-size: 19px; }
.nav a.plain:hover { text-decoration: underline wavy var(--pen); }
@media (max-width: 720px) { .nav .hide-sm { display: none; } }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding: 34px 0 70px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 10px; } }
.kicker { display: inline-block; font-size: 18px; padding: 4px 12px; background: var(--hl-blue); border: 1.5px solid var(--ink); border-radius: var(--wobble-sm); transform: rotate(-2deg); margin-bottom: 14px; }
.hero h1 { font-family: var(--head); font-weight: 700; font-size: clamp(48px, 7vw, 78px); line-height: .98; margin: 0 0 18px; letter-spacing: -.5px; }
.hero p.lead { font-size: 22px; margin: 0 0 26px; max-width: 34ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.fine { font-size: 17px; margin-top: 16px; color: var(--ink-2); }

/* ---------- interactive demo ---------- */
.demo { max-width: 440px; justify-self: center; width: 100%; }
.demo h3 { font-family: var(--head); font-size: 34px; margin: 4px 0 0; line-height: 1; display: flex; align-items: center; gap: 10px; }
.demo h3 img { width: 22px; height: 22px; }
.demo .freq { font-size: 18px; margin: 2px 0 14px 32px; }
.demo .freq .done-badge[hidden] { display: none; }
.demo .freq .done-badge { display: inline-block; margin-left: 6px; padding: 0 8px; border: 1.5px solid var(--good); color: var(--good); border-radius: var(--wobble-sm); transform: rotate(-4deg); font-family: var(--head); font-size: 20px; }
.jars { display: flex; align-items: flex-end; justify-content: center; gap: 16px; }
.jar-col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.jar {
  position: relative; width: calc(4 * var(--m) + 3 * 3px + 18px); height: calc(4 * var(--m) + 3 * 3px + 16px);
  border: 2px solid var(--ink); border-top: 0; border-radius: 4px 4px 22px 22px / 4px 4px 18px 18px;
  background: repeating-linear-gradient(-45deg, rgba(34,48,90,.05) 0 2px, transparent 2px 9px), rgba(255,255,255,.7);
  padding: 6px 7px; display: flex; flex-wrap: wrap-reverse; align-content: flex-start; gap: 3px; cursor: pointer;
}
.jar::before {
  content: ''; position: absolute; left: -9px; right: -9px; top: -13px; height: 13px;
  border: 2px solid var(--ink); border-radius: var(--wobble-sm);
  background: repeating-linear-gradient(-55deg, var(--c, #74c0fc) 0 2px, transparent 2px 5px), var(--paper);
}
.jar::after { content: ''; position: absolute; left: 8px; top: 12px; width: 3px; height: 34%; border-radius: 3px; background: rgba(34,48,90,.18); }
.marble { width: var(--m); height: var(--m); background-size: 100% 100%; flex: none; }
.marble.pop { animation: none; }
@keyframes pop { 0% { transform: translateY(-5px); } 60% { transform: translateY(1px); } 100% { transform: none; } }
.flyer { position: fixed; z-index: 50; pointer-events: none; width: var(--m); height: var(--m); background-size: 100% 100%; }
.jar-label { font-size: 18px; }
.jar-label b { font-family: var(--head); font-size: 26px; }
.roll { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-bottom: 32px; }
.roll .arrow { color: var(--pen); font-size: 30px; line-height: 1; }
.streak { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 10px 12px; border: 1.5px dashed rgba(34,48,90,.35); border-radius: var(--wobble-sm); }
.streak .n { font-family: var(--head); font-size: 40px; line-height: .8; color: var(--pen); }
.streak .l { font-size: 17px; line-height: 1.1; }
.week { display: flex; gap: 5px; margin-left: auto; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 15px; }
.wd i { width: 19px; height: 19px; border: 2px solid rgba(34,48,90,.4); border-radius: 5px 2px 6px 3px / 3px 6px 2px 5px; display: block; }
.wd i.on { border-color: var(--ink); background: repeating-linear-gradient(-45deg, var(--c, #74c0fc) 0 3px, transparent 3px 5px); }
.wd.today span { color: var(--pen); }
.wd.today i { box-shadow: 0 0 0 3px var(--hl-yellow); }
.try-note { position: absolute; right: -14px; top: -40px; font-family: var(--head); font-size: 28px; color: var(--pen); transform: rotate(6deg); pointer-events: none; }
.try-note svg { position: absolute; left: -36px; top: 26px; }
@media (max-width: 520px) { .try-note { right: 4px; top: -44px; } :root { --m: 18px; } }
.spark { position: fixed; z-index: 60; pointer-events: none; font-size: 20px; line-height: 1; }

/* ---------- sections ---------- */
section { padding: 60px 0; }
.sec-head { text-align: center; margin: 0 auto 40px; max-width: 680px; }
.sec-head h2 { font-family: var(--head); font-size: clamp(40px, 5.5vw, 58px); line-height: 1; margin: 0 0 10px; }
.sec-head p { font-size: 21px; margin: 0; }
.squiggle { display: block; margin: 8px auto 0; }

.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
@media (max-width: 820px) { .steps3 { grid-template-columns: 1fr; } }
.step-card .num { font-family: var(--head); font-size: 54px; line-height: .8; color: var(--pen); }
.step-card h3 { font-family: var(--head); font-size: 32px; margin: 6px 0 6px; line-height: 1; }
.step-card p { margin: 0; font-size: 19px; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 30px; }
@media (max-width: 820px) { .features { grid-template-columns: 1fr; } }
.feature { display: flex; flex-direction: column; gap: 14px; }
.feature h3 { font-family: var(--head); font-size: 34px; margin: 0; line-height: 1; }
.feature p { margin: 0; font-size: 19px; }
.feature .shot { border: 1.5px solid rgba(34,48,90,.25); border-radius: var(--wobble-sm); overflow: hidden; background: var(--bg); }
.feature .shot img { width: 100%; height: auto; }
.feature:nth-child(4n+1) { transform: rotate(-.5deg); }
.feature:nth-child(4n+2) { transform: rotate(.4deg); }
.feature:nth-child(4n+3) { transform: rotate(.3deg); }
.feature:nth-child(4n+4) { transform: rotate(-.4deg); }
.feature:nth-child(2) { --tape: rgba(130, 201, 255, .72); }
.feature:nth-child(3) { --tape: rgba(140, 233, 154, .72); }
.feature:nth-child(4) { --tape: rgba(255, 224, 102, .8); }
.feature:nth-child(5) { --tape: rgba(208, 191, 255, .75); }
.feature:nth-child(6) { --tape: rgba(255, 192, 120, .75); }

.why { max-width: 760px; margin: 0 auto; font-size: 22px; }
.why p { margin: 0 0 14px; }
.why .sig { font-family: var(--head); font-size: 30px; color: var(--pen); }

.cta-band { text-align: center; padding: 44px 24px; background: #fff9db; }
.cta-band h2 { font-family: var(--head); font-size: clamp(42px, 6vw, 62px); margin: 0 0 10px; line-height: 1; }
.cta-band p { font-size: 21px; margin: 0 0 22px; }
.cta-band .cta-row { justify-content: center; }

footer { padding: 40px 0 50px; font-size: 17px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
footer .grow { flex: 1; }
footer a { color: var(--ink); }

/* ---------- auth ---------- */
.auth-wrap { max-width: 460px; margin: 4vh auto 60px; padding: 0 16px; }
.auth-card h1 { font-family: var(--head); font-size: 46px; margin: 4px 0 6px; line-height: 1; text-align: center; }
.auth-card .sub { text-align: center; margin: 0 0 20px; font-size: 19px; }
.auth-card form { display: flex; flex-direction: column; gap: 12px; }
.auth-card label { font-size: 17px; display: flex; flex-direction: column; gap: 4px; }
.auth-card input {
  font: inherit; font-size: 19px; color: var(--ink); background: #fffefa; padding: 11px 13px;
  border: 2px solid rgba(34, 48, 90, .55); border-radius: var(--wobble-sm); width: 100%;
}
.auth-card input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px var(--hl-yellow); }
.auth-card .btn { width: 100%; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: 17px; }
.or::before, .or::after { content: ''; flex: 1; height: 2px; background: repeating-linear-gradient(90deg, rgba(34,48,90,.35) 0 6px, transparent 6px 10px); }
.msg { min-height: 24px; font-size: 18px; text-align: center; }
.msg.err { color: var(--bad); }
.msg.ok { color: var(--good); }
.switch { text-align: center; margin-top: 18px; font-size: 18px; }
.row-between { display: flex; justify-content: space-between; align-items: center; font-size: 17px; }
.legal { text-align: center; font-size: 15px; margin-top: 16px; color: var(--ink-2); }

/* ---------- privacy ---------- */
.doc { max-width: 760px; margin: 10px auto 60px; }
.doc h1 { font-family: var(--head); font-size: 54px; margin: 0 0 6px; line-height: 1; }
.doc h2 { font-family: var(--head); font-size: 32px; margin: 26px 0 6px; }
.doc p, .doc li { font-size: 19px; }
.nav a, .logo b { white-space: nowrap; }
@media (max-width: 520px) {
  .nav { gap: 12px; }
  .logo b { font-size: 28px; }
  .logo .dots img { width: 14px; height: 14px; }
  .nav .btn.small { font-size: 16px; padding: 7px 10px 8px; }
}

/* ---------- entry animation ("Hop") ---------- */
html.entry-pending #page { opacity: 0; }
html.entry-pending, html.entry-pending body { overflow: hidden; }
html.entry-playing .hero .hl { background-repeat: no-repeat; }
#page { transform-origin: 50% 40vh; }
.ent { position: fixed; inset: 0; z-index: 500; overflow: hidden; background: #f6f0e3; cursor: pointer; }
.ent-frame { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; }
.ent-world { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0; will-change: transform; }
.ent-paper { position: absolute; left: -2880px; top: -1620px; width: 7680px; height: 4320px;
  background: radial-gradient(circle, rgba(35,48,90,.22) 1.6px, transparent 2px) 0 0 / 32px 32px, #f6f0e3; }
.ent-shelf { position: absolute; left: 200px; top: 702px; width: 1520px; height: 4px; border-radius: 3px; background: #23305a; transform: rotate(-.25deg); }
.ent-shadow { position: absolute; width: 300px; height: 16px; border-radius: 50%; background: rgba(35,48,90,.10); }
.ent-jar { position: absolute; box-sizing: border-box; border: 4px solid #23305a; border-radius: 10.4px 10.4px 33.8px 33.8px;
  background: repeating-linear-gradient(135deg, rgba(35,48,90,.06) 0 2px, transparent 2px 14px), #fffcf4; }
.ent-shine { position: absolute; left: 23px; top: 30px; width: 5.6px; height: 72px; border-radius: 4px; background: rgba(35,48,90,.22); }
.ent-lid { position: absolute; left: 0; top: 0; width: 280px; height: 28px; box-sizing: border-box; border: 4px solid #23305a; border-radius: 8px;
  background: repeating-linear-gradient(135deg, #7cc0f5 0 6px, #d3e9fb 6px 12px); will-change: transform; }
.ent-marble { position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; box-sizing: border-box; border: 3px solid #23305a; will-change: transform; }
.ent-pop { position: absolute; top: 0; font-family: 'Caveat', cursive; font-weight: 700; font-size: 40px; color: #e0531f; opacity: 0; }
.ent-lbl { position: absolute; top: 724px; width: 200px; text-align: center; font-family: 'Patrick Hand', cursive; font-size: 34px; color: #23305a; }
.ent-lbl b { display: inline-block; font-family: 'Caveat', cursive; font-weight: 700; font-size: 46px; }
.ent-skip { position: absolute; right: 18px; bottom: 18px; font: inherit; font-family: 'Patrick Hand', cursive; font-size: 17px; color: #23305a;
  background: rgba(255,253,246,.9); border: 1.5px solid rgba(35,48,90,.45); border-radius: 6px 14px 5px 16px / 15px 5px 14px 6px; padding: 6px 14px; cursor: pointer; }
