/* Jabberhouse Page Keeper site */
:root {
  --blue: #1877f2;
  --blue-dark: #0f5fc7;
  --green: #2fa84f;
  --green-dark: #248a40;
  --ink: #14171c;
  --ink-2: #4b5260;
  --muted: #6b7280;
  --line: #e3e6eb;
  --paper: #fbf9f5;
  --card: #ffffff;
  --sun: #ffd84d;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 17px/1.6 "Figtree", system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { font-family: "Bricolage Grotesque", "Figtree", sans-serif; line-height: 1.1; margin: 0 0 .5em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* buttons */
.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none; text-align: center;
  font: 700 16px/1 "Figtree", sans-serif; color: #fff; background: var(--blue);
  padding: 13px 20px; border-radius: 10px; transition: transform .12s, background .12s;
}
.btn:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-lg { font-size: 17px; padding: 16px 24px; }
.btn-small { padding: 9px 14px; font-size: 14px; }
.btn-green { background: var(--green); }
.btn-green:hover { background: var(--green-dark); }
.btn-ghost { background: transparent; color: var(--blue); box-shadow: inset 0 0 0 2px var(--blue); }
.btn-ghost:hover { background: #eaf2ff; }
.btn-block { display: block; width: 100%; }
.btn-disabled, .btn-disabled:hover { background: #e7e9ee; color: var(--muted); box-shadow: none; cursor: default; transform: none; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: rgba(251, 249, 245, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue); font: 800 20px/1 "Bricolage Grotesque", sans-serif; }
.logo img { width: 34px; height: 34px; }
.logo small { display: block; font: 600 11px/1.3 "Figtree", sans-serif; color: var(--muted); letter-spacing: .02em; }
.topnav { display: flex; align-items: center; gap: 22px; }
.topnav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.topnav a:not(.btn):hover { color: var(--blue); }

.notice { margin-top: 18px; background: #fff7d6; border: 1px solid #f1d977; border-radius: 10px; padding: 12px 16px; }

/* hero */
.hero { padding: 64px 0 72px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 700; font-size: 14px; color: var(--blue); background: #e7f0fe; padding: 6px 12px; border-radius: 999px; margin: 0 0 18px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; letter-spacing: -.02em; }
.hero h1 span { display: block; color: var(--blue); }
.lede { font-size: 19px; color: var(--ink-2); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 10px; }
.fine { font-size: 14px; color: var(--muted); margin: 0; }

.hero-art { position: relative; justify-self: center; }
.mock {
  width: 340px; background: #f0f2f5; border-radius: 16px; padding: 14px;
  box-shadow: 0 30px 60px -20px rgba(20, 40, 80, .35), 0 0 0 1px rgba(0, 0, 0, .05);
  transform: rotate(1.5deg); font-size: 13px;
}
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.mock-head small { display: block; color: #65676b; font-size: 11px; font-weight: 600; }
.mock-head b { color: var(--blue); font-size: 17px; }
.mock-save { background: var(--blue); color: #fff; font-weight: 700; padding: 7px 10px; border-radius: 7px; font-size: 12px; }
.mock-plan { background: #e7f6e9; color: #1e7b34; font-weight: 700; font-size: 12px; padding: 5px 9px; border-radius: 6px; margin-bottom: 8px; }
.mock-item { background: #fff; border-radius: 9px; padding: 8px 10px; margin-bottom: 6px; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.mock-item b { display: block; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-item i { font-style: normal; color: #65676b; font-size: 11px; }
.mock-item.pinned { border-left: 3px solid var(--blue); }
.mock-item.recent { background: #f7f8fa; box-shadow: none; border: 1px solid #e4e6eb; }
.mock-item .keep { color: var(--blue); font-weight: 700; }
.mock-sub { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin: 12px 0 6px; padding-top: 10px; border-top: 1px solid #dadde1; }
.mock-toggle { width: 30px; height: 16px; background: var(--blue); border-radius: 16px; position: relative; }
.mock-toggle::after { content: ""; position: absolute; right: 2px; top: 2px; width: 12px; height: 12px; background: #fff; border-radius: 50%; }
.sticker {
  position: absolute; left: -46px; bottom: -34px; background: var(--sun); color: var(--ink);
  font-weight: 800; font-size: 14px; padding: 10px 14px; border-radius: 10px; max-width: 190px; line-height: 1.25;
  transform: rotate(-5deg); box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .25);
}

/* sections */
.section-title { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.015em; text-align: center; }
.section-sub { text-align: center; color: var(--ink-2); max-width: 34em; margin: 0 auto 36px; }

.how { padding: 64px 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.how-steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.how-steps li span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; margin-bottom: 12px; }
.how-steps h3 { font-size: 22px; }
.how-steps p { color: var(--ink-2); margin: 0; }
kbd { font: 600 13px/1 "Figtree", sans-serif; background: #f0f2f5; border: 1px solid #d5d9e0; border-bottom-width: 2px; border-radius: 5px; padding: 3px 6px; }

.features { padding: 80px 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.feat { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feat h3 { font-size: 21px; }
.feat.pro h3 { padding-right: 52px; }
.feat p { color: var(--ink-2); margin: 0; font-size: 16px; }
.feat.pro { border-color: #b9d3fb; background: linear-gradient(180deg, #f3f8ff, #fff 60%); }
.tag { position: absolute; top: 18px; right: 18px; background: var(--blue); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }

.pricing { padding: 80px 0; background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 820px; margin: 0 auto; }
.plan { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 30px; background: var(--paper); display: flex; flex-direction: column; }
.plan h3 { font-size: 24px; }
.plan .price { font: 800 44px/1 "Bricolage Grotesque", sans-serif; margin: 0 0 18px; }
.plan .price small { font: 600 16px "Figtree", sans-serif; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; flex: 1; }
.plan li { padding: 7px 0 7px 28px; position: relative; border-bottom: 1px dashed var(--line); }
.plan li::before { content: "\2713"; position: absolute; left: 2px; color: var(--green); font-weight: 800; }
.plan li.no { color: #9aa0aa; }
.plan li.no::before { content: "\2715"; color: #c3c8d0; }
.plan.featured { background: #fff; border: 2px solid var(--blue); box-shadow: 0 24px 50px -24px rgba(24, 119, 242, .45); }
.ribbon { position: absolute; top: -13px; left: 30px; background: var(--sun); font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 999px; }
.plan form { margin: 0; }
.secure { font-size: 13px; color: var(--muted); text-align: center; margin: 12px 0 0; }
.have-key { text-align: center; color: var(--ink-2); margin: 30px 0 0; font-size: 15px; }

.faq { padding: 80px 0; }
.faq .section-title { margin-bottom: 30px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; padding: 16px 0; list-style: none; position: relative; padding-right: 30px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 24px; color: var(--blue); }
details[open] summary::after { content: "\2212"; }
details p { margin: 0 0 18px; color: var(--ink-2); }

.foot { border-top: 1px solid var(--line); padding: 26px 0 40px; font-size: 14px; color: var(--muted); }
.foot-in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--blue); }

/* smaller pages */
body.plain main { padding: 40px 20px 60px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; margin-bottom: 20px; }
.card h1 { font-size: 34px; }
.card.center { text-align: center; }
.check { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #e7f6e9; color: var(--green); display: grid; place-items: center; font-size: 34px; font-weight: 800; }
.keybox { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin: 18px 0; }
.keybox code { font: 700 clamp(18px, 4vw, 26px)/1 ui-monospace, Menlo, Consolas, monospace; background: #f3f6fb; border: 2px dashed #b9d3fb; padding: 16px 20px; border-radius: 10px; letter-spacing: .04em; }
.steps li { margin-bottom: 8px; }
.muted { color: var(--muted); font-size: 15px; }
.err { color: #c62828; font-weight: 600; }
.ok { color: #1e7b34; font-weight: 600; background: #e7f6e9; padding: 10px 14px; border-radius: 8px; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input, .admin-form input[type=email], .admin-form input[type=text] {
  flex: 1; min-width: 200px; font: 16px "Figtree", sans-serif; padding: 12px 14px; border: 1px solid #cfd4dc; border-radius: 10px;
}
.prose h2 { font-size: 22px; margin-top: 1.4em; }
.prose p { color: var(--ink-2); }

/* admin */
body.plain main:has(.admin) { max-width: 1060px; }
.admin-head { display: flex; justify-content: space-between; align-items: baseline; }
.stats { font-size: 18px; }
.admin-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.table-wrap { overflow-x: auto; margin-top: 16px; }
table.admin { width: 100%; border-collapse: collapse; font-size: 14px; }
table.admin th, table.admin td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.admin tr.off td { color: #a0a6b0; text-decoration: line-through; }
table.admin tr.off td.row-actions { text-decoration: none; }
.row-actions form { display: flex; gap: 6px; flex-wrap: wrap; }
.row-actions button { font: 600 12px "Figtree", sans-serif; background: #f0f2f5; border: 1px solid #d5d9e0; border-radius: 6px; padding: 5px 8px; cursor: pointer; }

/* phones and tablets */
@media (max-width: 900px) {
  .hero-in { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { justify-self: center; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topnav a:not(.btn) { display: none; }
  .hero { padding: 40px 0 56px; }
  .how-steps, .grid, .plans { grid-template-columns: 1fr; }
  .mock { width: 300px; }
  .sticker { left: -10px; bottom: -20px; }
  .cta-row .btn { width: 100%; }
  .card { padding: 22px; }
}
