@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@500;600;700;800;900&display=swap');

/* Same clay palette as the app: each surface owns its pigment and three shadows. */
:root {
  --bg: #f4f2f8;
  --surface: #fcf8ff;
  --ink: #352b46;
  --muted: #5d506d;
  --accent: #513077;
  --clay-rgb: 102, 73, 143;
  --clay: 0 14px 26px rgba(var(--clay-rgb), .10),
          inset 0 -7px 15px rgba(var(--clay-rgb), .08),
          inset 0 8px 16px rgba(255, 255, 255, .65);
  --clay-small: 0 6px 12px rgba(var(--clay-rgb), .10),
                inset 0 -4px 8px rgba(var(--clay-rgb), .10),
                inset 0 4px 8px rgba(255, 255, 255, .72);
  --clay-in: inset 0 3px 8px rgba(var(--clay-rgb), .13), inset 0 -3px 6px rgba(255, 255, 255, .8);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  font-family: 'Nunito', ui-rounded, system-ui, sans-serif;
  color: var(--ink);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.drawer-lock { overflow: hidden; }
body.bb-public, body.login { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink); font-family: 'Nunito', ui-rounded, system-ui, sans-serif; }
body.bb-public { background:
  radial-gradient(900px 500px at 85% -10%, #ecdff8 0%, transparent 60%),
  radial-gradient(700px 420px at -10% 30%, #f7e6db 0%, transparent 55%),
  var(--bg); }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; font-weight: 900; letter-spacing: -1px; line-height: 1.08; }
p { margin: 0; }
[hidden] { display: none !important; }
a, button, input { transition: box-shadow .18s ease, transform .18s ease, background-color .18s ease; -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, .track:focus-visible { outline: 4px solid #643c9b; outline-offset: 4px; }

/* Brand: one line, logo tight to the name */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 900; letter-spacing: -.8px; white-space: nowrap; }
.brand img { width: 40px; height: 40px; border-radius: 15px; box-shadow: var(--clay-small); }
.brand-dot { color: #674390; }

/* Buttons */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 24px; border: 1px solid #ffffff80; font: inherit; font-size: 15px; font-weight: 900; text-decoration: none; cursor: pointer; box-shadow: var(--clay-small); }
.button.big { min-height: 58px; padding: 15px 28px; border-radius: 28px; font-size: 16px; }
.button:disabled { opacity: .6; cursor: progress; }
.primary { background: #deceef; color: #342041; border-color: #f1e3ff; }
.ghost { background: #fcf8ff; color: #4a3560; }
.button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 9px 16px rgba(var(--clay-rgb), .14), inset 0 -8px 12px rgba(var(--clay-rgb), .17), inset 0 5px 10px rgba(255,255,255,.72); }
.button:active:not(:disabled) { transform: translateY(1px); box-shadow: 0 4px 9px rgba(var(--clay-rgb), .18), inset 0 -10px 14px rgba(var(--clay-rgb), .22), inset 0 4px 8px rgba(255,255,255,.62); }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 18px; background: #eee5f6; color: #4b3762; cursor: pointer; box-shadow: var(--clay-small); }
.icon-button svg { width: 20px; height: 20px; }
.link { color: #4d3766; font-weight: 800; text-decoration: none; }
.link:hover { text-decoration: underline; }
.fine { color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1.6; }

/* Landing */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: 1180px; margin: 0 auto; padding: 24px; }
.topbar nav { display: flex; align-items: center; gap: 18px; }
main { display: block; }
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; max-width: 1180px; margin: 0 auto; padding: 48px 24px 88px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); letter-spacing: -2px; }
.hero h1 span { color: #674390; }
.lead { margin-top: 20px; color: var(--muted); font-size: 18px; font-weight: 600; line-height: 1.6; }
.hero .lead { max-width: 540px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.preview { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; transform: rotate(-2deg); }
.mock-card { display: flex; flex-direction: column; gap: 10px; min-height: 164px; padding: 22px; border-radius: 30px; border: 1px solid #fff; box-shadow: var(--clay); }
.mock-card span { font-size: 14px; font-weight: 800; color: #4c3b59; }
.mock-card strong { font-size: 28px; font-weight: 900; letter-spacing: -.7px; margin-top: auto; }
.mock-card small { font-size: 12px; font-weight: 700; color: #51435d; }
.mock-card:nth-child(2), .mock-card:nth-child(4) { transform: translateY(26px); }
.positive { color: #245638; }

/* Screenshot carousel */
.showcase { max-width: 1180px; margin: 0 auto; padding: 8px 24px 40px; }
.tabs { display: flex; justify-content: center; gap: 4px; width: max-content; max-width: 100%; margin: 0 auto 22px; padding: 5px; border: 1px solid #fdf7ff; border-radius: 24px; background: #eee5f6; box-shadow: var(--clay-small); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; min-height: 42px; padding: 9px 18px; border: 0; border-radius: 19px; background: transparent; color: #5d4a70; font: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.tabs button:hover { background: #e8dbf4; }
.tabs button[aria-selected=true] { background: #ddceec; color: #382347; box-shadow: var(--clay-small); }
.frame { overflow: hidden; border-radius: 30px; border: 1px solid #fff; background: #fcf8ff; box-shadow: 0 30px 60px -20px rgba(var(--clay-rgb), .35), var(--clay); }
.frame-bar { display: flex; align-items: center; gap: 7px; height: 44px; padding: 0 18px; background: #efe7f7; border-bottom: 1px solid #e6dcf1; }
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #dccbeb; }
.frame-bar i:nth-child(2) { background: #f0d6c6; }
.frame-bar i:nth-child(3) { background: #cfe5d8; }
.frame-bar span { margin: 0 auto; padding: 5px 16px; border-radius: 12px; background: #fcf8ff; color: #7a6a8a; font-size: 12px; font-weight: 800; transform: translateX(-24px); }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; }
.slide img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; }
.caption { min-height: 26px; margin-top: 18px; text-align: center; color: var(--muted); font-size: 16px; font-weight: 700; }

/* Features */
.features { max-width: 1180px; margin: 0 auto; padding: 56px 24px 72px; }
.features h2 { font-size: clamp(28px, 3.4vw, 40px); text-align: center; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 36px; }
.feature { padding: 26px 22px; border-radius: 30px; border: 1px solid #fff; box-shadow: var(--clay); }
.feature-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 18px; border-radius: 18px; background: #fcf8ff; color: #503668; box-shadow: var(--clay-small); }
.feature-icon svg { width: 24px; height: 24px; }
.feature h3 { font-size: 19px; letter-spacing: -.4px; margin-bottom: 10px; }
.feature p { color: #51435d; font-size: 15px; font-weight: 600; line-height: 1.6; }
.lilac { background: #e9ddf6; border-color: #f6eeff; --clay-rgb: 110, 75, 159; }
.peach { background: #f7e3d6; border-color: #ffece0; --clay-rgb: 164, 107, 73; }
.mint  { background: #deeee4; border-color: #ecfff1; --clay-rgb: 79, 135, 99; }
.sand  { background: #f7eed0; border-color: #fff4ce; --clay-rgb: 152, 124, 55; }

.site-footer { max-width: 1180px; margin: 0 auto; padding: 8px 24px 32px; }
.footer-card { padding: 36px 36px 22px; border-radius: 34px; border: 1px solid #fff; background: #eee7f6; box-shadow: var(--clay); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 28px; border-bottom: 1px solid #e0d4ec; }
.footer-about { display: flex; flex-direction: column; gap: 14px; max-width: 340px; }
.footer-about p { color: var(--muted); font-size: 15px; font-weight: 600; line-height: 1.6; }
.footer-cols { display: flex; gap: 56px; }
.footer-cols div { display: flex; flex-direction: column; gap: 10px; }
.footer-cols h2 { margin-bottom: 4px; color: #7a6a8a; font-size: 12px; font-weight: 900; letter-spacing: 1.2px; text-transform: uppercase; }
.footer-cols a { color: var(--ink); font-size: 15px; font-weight: 800; text-decoration: none; }
.footer-cols a:hover { color: #674390; text-decoration: underline; }
.footer-cols span { max-width: 220px; color: var(--muted); font-size: 13px; font-weight: 600; line-height: 1.5; }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 18px; color: #7a6a8a; font-size: 12px; font-weight: 700; line-height: 1.6; }
.footer-bottom span:last-child { max-width: 560px; text-align: right; }

/* Slide-in drawer */
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(53, 43, 70, .28); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s ease; }
.drawer-panel { position: absolute; top: 12px; right: 12px; bottom: 12px; display: flex; flex-direction: column; width: min(460px, calc(100% - 24px)); padding: 22px 30px 30px; overflow-y: auto; border-radius: 34px; border: 1px solid #fff; background: var(--surface); box-shadow: -24px 0 60px -20px rgba(var(--clay-rgb), .4), var(--clay); transform: translateX(calc(100% + 24px)); transition: transform .42s var(--ease-out); }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.drawer-view { animation: view-in .28s var(--ease-out); }
@keyframes view-in { from { opacity: 0; transform: translateX(14px); } }

/* Forms (drawer and stand-alone pages) */
.form-title { font-size: 30px; }
.drawer-view .lead, .auth-card .lead { margin-top: 10px; font-size: 16px; }
form[data-form] { display: flex; flex-direction: column; margin-top: 24px; }
form[data-form] > label { margin: 14px 0 8px; font-size: 14px; font-weight: 800; color: #4c3b59; }
form[data-form] > label:first-of-type { margin-top: 0; }
form[data-form] small { margin-top: 8px; color: var(--muted); font-weight: 700; font-size: 12px; }
form[data-form] input[type=text], form[data-form] input[type=email], form[data-form] input[type=password] {
  width: 100%; min-height: 52px; padding: 12px 18px; border: 1px solid #efe6f8; border-radius: 20px; background: #f6f0fc; color: var(--ink); font: inherit; font-size: 16px; font-weight: 700; box-shadow: var(--clay-in); }
form[data-form] input:focus { outline: none; border-color: #b89bd8; background: #fff; box-shadow: 0 0 0 4px #e6d8f5; }
form[data-form] .button { width: 100%; margin-top: 22px; }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; font-size: 14px; }
.form-row a { color: #4d3766; font-weight: 800; text-decoration: none; }
.form-row a:hover { text-decoration: underline; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 700; color: #4c3b59; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: #674390; }
.alert { margin-top: 20px; padding: 13px 16px; border-radius: 18px; font-size: 14px; font-weight: 800; line-height: 1.5; }
.alert.error { background: #f8e3e8; color: #8b3048; }
.alert.notice { background: #deeee4; color: #245638; }
.switch { margin-top: 22px; text-align: center; color: var(--muted); font-size: 14px; font-weight: 700; }
.switch a { font-weight: 900; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Stand-alone auth pages (no-JS fallback, deep links, password reset return) */
.auth { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; min-height: 100dvh; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 440px; padding: 36px 32px 30px; border-radius: 34px; background: var(--surface); border: 1px solid #fff; box-shadow: var(--clay); }
.auth-foot { color: var(--muted); font-size: 13px; font-weight: 700; }
.auth-foot a { color: inherit; text-decoration: none; }

/* WordPress password reset screen (wp-login.php?action=rp) */
body.login #login { width: 100%; max-width: 440px; padding: 8vh 16px 40px; margin: 0 auto; }
body.login h1 a { background: url(favicon.svg) center / 56px no-repeat; width: 56px; height: 56px; margin: 0 auto 24px; border-radius: 20px; box-shadow: var(--clay-small); }
body.login form { margin: 0; padding: 30px 28px; border-radius: 34px; background: var(--surface); border: 1px solid #fff; box-shadow: var(--clay); }
body.login label { color: #4c3b59; font-weight: 800; font-size: 14px; }
body.login input[type=text], body.login input[type=password] { min-height: 52px; padding: 10px 16px; border: 1px solid #efe6f8; border-radius: 20px; background: #f6f0fc; font-size: 16px; box-shadow: var(--clay-in); }
body.login input:focus { border-color: #b89bd8; box-shadow: 0 0 0 4px #e6d8f5; }
body.login .button-primary { float: none; width: 100%; min-height: 52px; margin-top: 10px; border: 1px solid #f1e3ff; border-radius: 26px; background: #deceef; color: #342041; font-weight: 900; font-size: 15px; text-shadow: none; box-shadow: var(--clay-small); }
body.login .button-primary:hover, body.login .button-primary:focus { background: #d6c3eb; color: #342041; border-color: #f1e3ff; }
body.login .button.wp-hide-pw { border-radius: 16px; color: #513077; }
body.login .message, body.login .notice, body.login #login_error { border: 0; border-radius: 18px; box-shadow: none; background: #deeee4; color: #245638; font-weight: 700; }
body.login #login_error { background: #f8e3e8; color: #8b3048; }
body.login #nav, body.login #backtoblog { text-align: center; }
body.login #nav a, body.login #backtoblog a { color: var(--muted); font-weight: 800; }
body.login .language-switcher, body.login .privacy-policy-page-link { display: none; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding-top: 24px; }
  .preview { transform: none; max-width: 560px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .topbar { padding: 16px; }
  .topbar .link { display: none; }
  .topbar .button { min-height: 42px; padding: 10px 16px; font-size: 14px; }
  .brand { font-size: 16px; gap: 8px; }
  .brand img { width: 34px; height: 34px; border-radius: 13px; }
  .hero { padding: 24px 16px 56px; gap: 40px; }
  .hero h1 { letter-spacing: -1.4px; }
  .preview { gap: 12px; }
  .mock-card { min-height: 136px; padding: 16px; border-radius: 24px; }
  .mock-card strong { font-size: 21px; }
  .mock-card:nth-child(2), .mock-card:nth-child(4) { transform: translateY(14px); }
  .lead { font-size: 16px; }
  .cta-row .button { width: 100%; }
  .showcase, .features { padding-left: 16px; padding-right: 16px; }
  .tabs { justify-content: flex-start; }
  .tabs button { padding: 8px 14px; font-size: 13px; }
  .frame { border-radius: 20px; }
  .frame-bar { height: 32px; padding: 0 12px; gap: 5px; }
  .frame-bar i { width: 8px; height: 8px; }
  .frame-bar span { display: none; }
  .caption { font-size: 14px; }
  .feature-grid { grid-template-columns: 1fr; }
  .site-footer { padding: 0 16px 20px; }
  .footer-card { padding: 28px 22px 20px; border-radius: 28px; }
  .footer-top { flex-direction: column; gap: 28px; }
  .footer-cols { gap: 36px; flex-wrap: wrap; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .footer-bottom span:last-child { text-align: left; }
  .drawer-panel { top: 0; right: 0; bottom: 0; width: 100%; border-radius: 0; padding: 18px 20px 28px; }
  .auth-card { padding: 28px 20px 24px; border-radius: 28px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Blog: list and article, same palette and type as the landing page */
.blog { max-width: 1180px; margin: 0 auto; padding: 16px 24px 64px; display: grid; gap: 40px; }
.blog-hero { max-width: 760px; padding-top: 24px; }
.blog-eyebrow { font-size: 13px; font-weight: 900; letter-spacing: 1.4px; text-transform: uppercase; color: #674390; margin-bottom: 12px; }
.blog-hero h1 { font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -1.6px; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card a { display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 24px; border-radius: 28px; background: var(--surface); border: 1px solid #fff; box-shadow: var(--clay); color: var(--ink); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.post-card a:hover { transform: translateY(-2px); box-shadow: 0 18px 32px rgba(var(--clay-rgb), .16), var(--clay); }
.post-card h2 { font-size: 21px; letter-spacing: -.4px; line-height: 1.25; }
.post-card p { color: var(--muted); font-weight: 600; line-height: 1.6; }
.post-meta { color: #7a6a8a; font-size: 13px; font-weight: 800; }
.post-more { margin-top: auto; color: #674390; font-weight: 900; font-size: 14px; }
.blog-pager { display: flex; align-items: center; justify-content: center; gap: 16px; font-weight: 800; color: var(--muted); }
.blog-empty { max-width: 640px; font-size: 17px; font-weight: 600; color: var(--muted); line-height: 1.7; }

.post { max-width: 760px; width: 100%; margin: 0 auto; display: grid; gap: 22px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; font-weight: 800; color: #7a6a8a; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: #674390; }
.post-head h1 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -1.4px; line-height: 1.12; }
.post-head .post-meta { margin-top: 14px; font-size: 14px; }
.post-cover { width: 100%; height: auto; border-radius: 28px; box-shadow: var(--clay); }
.prose { font-size: 18px; line-height: 1.8; color: #3d3350; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { margin-top: 1.8em; font-size: 28px; letter-spacing: -.6px; line-height: 1.25; color: var(--ink); }
.prose h3 { margin-top: 1.5em; font-size: 22px; letter-spacing: -.3px; color: var(--ink); }
.prose a { color: #5b3a86; font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 1.4em 0; padding: 16px 20px; border-radius: 20px; background: #eee5f6; color: var(--ink); font-weight: 700; }
.prose img { max-width: 100%; height: auto; border-radius: 20px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid #e3d9ee; text-align: left; }
.post-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 12px; padding: 28px; border-radius: 30px; background: #e9ddf6; border: 1px solid #f6eeff; box-shadow: var(--clay); --clay-rgb: 110, 75, 159; }
.post-cta h2 { font-size: 24px; letter-spacing: -.5px; }
.post-cta p { margin-top: 8px; color: #51435d; font-weight: 600; line-height: 1.6; }
.post-cta .button { flex: none; }
.related { display: grid; gap: 20px; }
.related h2 { font-size: 26px; letter-spacing: -.5px; }

@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .blog { padding: 8px 16px 48px; gap: 28px; }
  .post-grid { grid-template-columns: 1fr; }
  .prose { font-size: 17px; }
  .post-cta { flex-direction: column; align-items: stretch; padding: 22px; }
  .topbar nav .link:first-child { display: inline; }
}
