{
  "$schema": "https://playground.wordpress.net/blueprint-schema.json",
  "landingPage": "/",
  "preferredVersions": {
    "php": "8.3",
    "wp": "7.1"
  },
  "meta": {
    "title": "Kit Rx operations data services",
    "author": "Kit Rx",
    "description": "An editable, three-page Gutenberg and Kadence work sample."
  },
  "login": true,
  "steps": [
    {
      "step": "installTheme",
      "themeData": {
        "resource": "url",
        "url": "https://downloads.wordpress.org/theme/kadence.1.6.0.zip"
      },
      "options": {
        "activate": true,
        "importStarterContent": false
      }
    },
    {
      "step": "installPlugin",
      "pluginData": {
        "resource": "url",
        "url": "https://downloads.wordpress.org/plugin/kadence-blocks.3.9.1.1.zip"
      },
      "options": {
        "activate": true
      }
    },
    {
      "step": "setSiteOptions",
      "options": {
        "blogname": "Kit Rx",
        "blogdescription": "Operations data services",
        "blog_public": "0"
      }
    },
    {
      "step": "writeFile",
      "path": "/tmp/kitrx-pages.json",
      "data": "[{\"slug\": \"services\", \"title\": \"Services\", \"content\": \"<!-- wp:kadence/rowlayout {\\\"uniqueID\\\":\\\"kx00005\\\",\\\"colLayout\\\":\\\"left-golden\\\",\\\"inheritMaxWidth\\\":true,\\\"padding\\\":[\\\"0\\\",\\\"0\\\",\\\"0\\\",\\\"0\\\"],\\\"kbVersion\\\":2,\\\"className\\\":\\\"kit-hero\\\"} -->\\n<!-- wp:kadence/column {\\\"uniqueID\\\":\\\"kx00006\\\",\\\"kbVersion\\\":2,\\\"className\\\":\\\"kit-column\\\"} -->\\n<div class=\\\"wp-block-kadence-column kadence-columnkx00006 kit-column\\\"><div class=\\\"kt-inside-inner-col\\\"><!-- wp:kadence/advancedheading {\\\"level\\\":1,\\\"uniqueID\\\":\\\"kx00001\\\"} -->\\n<h1 class=\\\"kt-adv-headingkx00001 wp-block-kadence-advancedheading\\\" data-kb-block=\\\"kb-adv-headingkx00001\\\">Trace carrier charges back to client orders.</h1>\\n<!-- /wp:kadence/advancedheading -->\\n\\n<!-- wp:paragraph {\\\"className\\\":\\\"kit-intro\\\"} -->\\n<p class=\\\"kit-intro\\\">Kit Rx matches posted charges and credits to their source records. Your billing team gets the amounts it can explain and a short list of items to resolve.</p>\\n<!-- /wp:paragraph -->\\n\\n<!-- wp:kadence/advancedbtn {\\\"uniqueID\\\":\\\"kx00002\\\"} -->\\n<div class=\\\"wp-block-kadence-advancedbtn kb-buttons-wrap kb-btnskx00002\\\"><!-- wp:kadence/singlebtn {\\\"uniqueID\\\":\\\"kx00003\\\",\\\"text\\\":\\\"See the parcel review\\\",\\\"link\\\":\\\"https://kit-rx.com/parcel-adjustment-review/\\\",\\\"color\\\":\\\"#ffffff\\\",\\\"background\\\":\\\"#07594a\\\",\\\"borderRadius\\\":[5,5,5,5],\\\"className\\\":\\\"kit-button\\\"} /--></div>\\n<!-- /wp:kadence/advancedbtn --></div></div>\\n<!-- /wp:kadence/column -->\\n\\n<!-- wp:kadence/column {\\\"id\\\":2,\\\"uniqueID\\\":\\\"kx00007\\\",\\\"kbVersion\\\":2,\\\"className\\\":\\\"kit-column\\\"} -->\\n<div class=\\\"wp-block-kadence-column kadence-columnkx00007 kit-column\\\"><div class=\\\"kt-inside-inner-col\\\"><!-- wp:kadence/advancedheading {\\\"uniqueID\\\":\\\"kx00004\\\"} -->\\n<h2 class=\\\"kt-adv-headingkx00004 wp-block-kadence-advancedheading\\\" data-kb-block=\\\"kb-adv-headingkx00004\\\">October example</h2>\\n<!-- /wp:kadence/advancedheading -->\\n\\n<!-- wp:paragraph -->\\n<p>Seven fictional carrier postings.</p>\\n<!-- /wp:paragraph -->\\n\\n<!-- wp:table {\\\"hasFixedLayout\\\":false,\\\"className\\\":\\\"kit-hero-table\\\"} -->\\n<figure class=\\\"wp-block-table kit-hero-table\\\"><table><tbody><tr><td>Source net</td><td>$27.05</td></tr><tr><td>Assigned to clients</td><td>$14.65</td></tr><tr><td>Held for review</td><td>$12.40</td></tr></tbody></table></figure>\\n<!-- /wp:table --></div></div>\\n<!-- /wp:kadence/column -->\\n<!-- /wp:kadence/rowlayout -->\\n\\n<!-- wp:kadence/advancedheading {\\\"uniqueID\\\":\\\"kx00008\\\"} -->\\n<h2 class=\\\"kt-adv-headingkx00008 wp-block-kadence-advancedheading\\\" data-kb-block=\\\"kb-adv-headingkx00008\\\">Reconciliation services</h2>\\n<!-- /wp:kadence/advancedheading -->\\n\\n<!-- wp:kadence/rowlayout {\\\"uniqueID\\\":\\\"kx00011\\\",\\\"colLayout\\\":\\\"equal\\\",\\\"inheritMaxWidth\\\":true,\\\"padding\\\":[\\\"0\\\",\\\"0\\\",\\\"0\\\",\\\"0\\\"],\\\"kbVersion\\\":2,\\\"className\\\":\\\"kit-services\\\"} -->\\n<!-- wp:kadence/column {\\\"uniqueID\\\":\\\"kx00012\\\",\\\"kbVersion\\\":2,\\\"className\\\":\\\"kit-column\\\"} -->\\n<div class=\\\"wp-block-kadence-column kadence-columnkx00012 kit-column\\\"><div class=\\\"kt-inside-inner-col\\\"><!-- wp:kadence/advancedheading {\\\"level\\\":3,\\\"uniqueID\\\":\\\"kx00009\\\"} -->\\n<h3 class=\\\"kt-adv-headingkx00009 wp-block-kadence-advancedheading\\\" data-kb-block=\\\"kb-adv-headingkx00009\\\">Fulfillment billing</h3>\\n<!-- /wp:kadence/advancedheading -->\\n\\n<!-- wp:paragraph -->\\n<p>Assign carrier adjustments to client orders, account for credits and isolate shipments shared by more than one order.</p>\\n<!-- /wp:paragraph -->\\n\\n<!-- wp:paragraph -->\\n<p><a href=\\\"https://kit-rx.com/parcel-adjustment-review/\\\">Inspect the completed parcel report</a></p>\\n<!-- /wp:paragraph --></div></div>\\n<!-- /wp:kadence/column -->\\n\\n<!-- wp:kadence/column {\\\"id\\\":2,\\\"uniqueID\\\":\\\"kx00013\\\",\\\"kbVersion\\\":2,\\\"className\\\":\\\"kit-column\\\"} -->\\n<div class=\\\"wp-block-kadence-column kadence-columnkx00013 kit-column\\\"><div class=\\\"kt-inside-inner-col\\\"><!-- wp:kadence/advancedheading {\\\"level\\\":3,\\\"uniqueID\\\":\\\"kx00010\\\"} -->\\n<h3 class=\\\"kt-adv-headingkx00010 wp-block-kadence-advancedheading\\\" data-kb-block=\\\"kb-adv-headingkx00010\\\">Pharmacy pricing</h3>\\n<!-- /wp:kadence/advancedheading -->\\n\\n<!-- wp:paragraph -->\\n<p>Check the unit prices in a January file against the dated CMS release. Trace each difference to its source row.</p>\\n<!-- /wp:paragraph -->\\n\\n<!-- wp:paragraph -->\\n<p><a href=\\\"https://kit-rx.com/pharmacy-cash-plan/#price-file-review\\\">See the pricing-file example</a></p>\\n<!-- /wp:paragraph --></div></div>\\n<!-- /wp:kadence/column -->\\n<!-- /wp:kadence/rowlayout -->\\n\\n<!-- wp:kadence/advancedheading {\\\"uniqueID\\\":\\\"kx00014\\\"} -->\\n<h2 class=\\\"kt-adv-headingkx00014 wp-block-kadence-advancedheading\\\" data-kb-block=\\\"kb-adv-headingkx00014\\\">How an engagement starts</h2>\\n<!-- /wp:kadence/advancedheading -->\\n\\n<!-- wp:paragraph -->\\n<p>Start with the posting month, approximate volume and the result you need. We agree on a small masked sample and what a correct delivery looks like before quoting the work.</p>\\n<!-- /wp:paragraph -->\\n\\n<!-- wp:paragraph -->\\n<p><a href=\\\"mailto:support@kit-rx.com?subject=Reconciliation%20sample\\\">Discuss a file</a></p>\\n<!-- /wp:paragraph -->\"}, {\"slug\": \"work-sample\", \"title\": \"Work sample\", \"content\": \"<!-- wp:kadence/advancedheading {\\\"level\\\":1,\\\"uniqueID\\\":\\\"kx00015\\\"} -->\\n<h1 class=\\\"kt-adv-headingkx00015 wp-block-kadence-advancedheading\\\" data-kb-block=\\\"kb-adv-headingkx00015\\\">A parcel billing close, line by line.</h1>\\n<!-- /wp:kadence/advancedheading -->\\n\\n<!-- wp:paragraph {\\\"className\\\":\\\"kit-intro\\\"} -->\\n<p class=\\\"kit-intro\\\">This fictional month has seven carrier postings. The source shows $30.50 in charges and $3.45 in credits, for a net cost of $27.05.</p>\\n<!-- /wp:paragraph -->\\n\\n<!-- wp:kadence/advancedheading {\\\"uniqueID\\\":\\\"kx00016\\\"} -->\\n<h2 class=\\\"kt-adv-headingkx00016 wp-block-kadence-advancedheading\\\" data-kb-block=\\\"kb-adv-headingkx00016\\\">Amounts assigned to clients</h2>\\n<!-- /wp:kadence/advancedheading -->\\n\\n<!-- wp:table {\\\"hasFixedLayout\\\":false,\\\"className\\\":\\\"kit-table\\\"} -->\\n<figure class=\\\"wp-block-table kit-table\\\"><table><thead><tr><th scope=\\\"col\\\">Client</th><th scope=\\\"col\\\">Charges</th><th scope=\\\"col\\\">Credits</th><th scope=\\\"col\\\">Net</th></tr></thead><tbody><tr><td>North</td><td>$12.60</td><td>$2.10</td><td>$10.50</td></tr><tr><td>East</td><td>$5.50</td><td>$1.35</td><td>$4.15</td></tr></tbody></table></figure>\\n<!-- /wp:table -->\\n\\n<!-- wp:kadence/advancedheading {\\\"uniqueID\\\":\\\"kx00017\\\"} -->\\n<h2 class=\\\"kt-adv-headingkx00017 wp-block-kadence-advancedheading\\\" data-kb-block=\\\"kb-adv-headingkx00017\\\">Two charges need a second look</h2>\\n<!-- /wp:kadence/advancedheading -->\\n\\n<!-- wp:paragraph -->\\n<p>An $8.40 charge points to two orders. A $4.00 charge has no matching shipment. The $12.40 stays out of client totals while the operator checks the source records.</p>\\n<!-- /wp:paragraph -->\\n\\n<!-- wp:kadence/advancedbtn {\\\"uniqueID\\\":\\\"kx00018\\\"} -->\\n<div class=\\\"wp-block-kadence-advancedbtn kb-buttons-wrap kb-btnskx00018\\\"><!-- wp:kadence/singlebtn {\\\"uniqueID\\\":\\\"kx00019\\\",\\\"text\\\":\\\"Read all seven source rows\\\",\\\"link\\\":\\\"https://kit-rx.com/parcel-adjustment-review/example-postings.csv\\\",\\\"color\\\":\\\"#ffffff\\\",\\\"background\\\":\\\"#07594a\\\",\\\"borderRadius\\\":[5,5,5,5],\\\"className\\\":\\\"kit-button\\\"} /--></div>\\n<!-- /wp:kadence/advancedbtn -->\"}, {\"slug\": \"contact\", \"title\": \"Contact\", \"content\": \"<!-- wp:kadence/advancedheading {\\\"level\\\":1,\\\"uniqueID\\\":\\\"kx00020\\\"} -->\\n<h1 class=\\\"kt-adv-headingkx00020 wp-block-kadence-advancedheading\\\" data-kb-block=\\\"kb-adv-headingkx00020\\\">Bring one closing period.</h1>\\n<!-- /wp:kadence/advancedheading -->\\n\\n<!-- wp:paragraph {\\\"className\\\":\\\"kit-intro\\\"} -->\\n<p class=\\\"kit-intro\\\">Tell us which report you are trying to reconcile and what your team needs to see at sign-off.</p>\\n<!-- /wp:paragraph -->\\n\\n<!-- wp:kadence/advancedheading {\\\"uniqueID\\\":\\\"kx00021\\\"} -->\\n<h2 class=\\\"kt-adv-headingkx00021 wp-block-kadence-advancedheading\\\" data-kb-block=\\\"kb-adv-headingkx00021\\\">What to include</h2>\\n<!-- /wp:kadence/advancedheading -->\\n\\n<!-- wp:paragraph -->\\n<p>The posting month, the approximate number of entries and the two reports you need to compare are enough to start. Keep names, addresses, actual tracking numbers and financial records out of the first message.</p>\\n<!-- /wp:paragraph -->\\n\\n<!-- wp:kadence/advancedbtn {\\\"uniqueID\\\":\\\"kx00022\\\"} -->\\n<div class=\\\"wp-block-kadence-advancedbtn kb-buttons-wrap kb-btnskx00022\\\"><!-- wp:kadence/singlebtn {\\\"uniqueID\\\":\\\"kx00023\\\",\\\"text\\\":\\\"Email Kit Rx\\\",\\\"link\\\":\\\"mailto:support@kit-rx.com?subject=Reconciliation%20inquiry\\\",\\\"color\\\":\\\"#ffffff\\\",\\\"background\\\":\\\"#07594a\\\",\\\"borderRadius\\\":[5,5,5,5],\\\"className\\\":\\\"kit-button\\\"} /--></div>\\n<!-- /wp:kadence/advancedbtn -->\\n\\n<!-- wp:paragraph -->\\n<p><a href=\\\"mailto:support@kit-rx.com\\\">support@kit-rx.com</a></p>\\n<!-- /wp:paragraph -->\"}]"
    },
    {
      "step": "writeFile",
      "path": "/tmp/kitrx-theme.css",
      "data": ":root{--global-palette1:#07594a;--global-palette2:#0c473e;--global-palette3:#152b23;--global-palette4:#324940;--global-palette5:#516259;--global-palette8:#f5f6f0;--global-palette9:#fff}\nbody{background:#f5f6f0;color:#1a332c;font-family:system-ui,-apple-system,\"Segoe UI\",sans-serif}\n#masthead,.site-main-header-wrap,.site-mobile-header-wrap{background:#f5f6f0;border-bottom:1px solid #cbd6ce}\n.site-container,.site-header-row-layout-standard>.site-header-row-container-inner>.site-container{max-width:1080px}\n.site-title{font-weight:750;letter-spacing:-.04em}.site-title a,.main-navigation .menu-container a{color:#19362c}\n.main-navigation .menu-container a{font-weight:550}\n.entry-content-wrap,.content-bg,.entry{background:transparent;box-shadow:none}\n.content-area{margin-block:clamp(1.5rem,4vw,3.5rem)}\n.entry-content{color:#243e33}.entry-content h1,.entry-content h2,.entry-content h3{color:#19372b;letter-spacing:-.035em;line-height:1.08}\n.entry-content h1{font:normal 680 clamp(2.5rem,5.3vw,4.4rem)/1.05 system-ui,-apple-system,\"Segoe UI\",sans-serif;letter-spacing:-.055em;max-width:16em;margin:0 0 1.1rem}\n.entry-content h2{font-size:clamp(1.55rem,3vw,2.1rem);margin:2rem 0 .85rem}\n.entry-content h3{font-size:1.4rem;margin:.1rem 0 .65rem}\n.entry-content p{max-width:66ch;line-height:1.58}\n.entry-content .kit-intro{font-size:clamp(1.05rem,1.8vw,1.3rem);max-width:52ch;color:#42594d}\n.kit-hero{background:#e3ebdf;border:1px solid #c9d5c5;border-radius:16px;padding:clamp(1.25rem,4.5vw,3.25rem);margin:0 0 2.5rem}\n.kit-hero .kt-inside-inner-col>:last-child,.kit-services .kt-inside-inner-col>:last-child{margin-bottom:0}\n.kit-services .kit-column .kt-inside-inner-col{background:#fff;border:1px solid #cbd6ce;border-radius:10px;padding:1.3rem}\n.kit-table{max-width:630px;font-variant-numeric:tabular-nums}\n.kit-table table{border-collapse:collapse;background:#fff;width:100%}\n.kit-table th,.kit-table td{padding:.6rem .8rem;text-align:right;border:1px solid #cbd6ce}\n.kit-table th:first-child,.kit-table td:first-child{text-align:left}\n.entry-content a:not(.kb-button){color:#07594a;text-underline-offset:.18em}\n.entry-content .kb-button{font-weight:650}\n.entry-content .kb-buttons-wrap{justify-content:flex-start}\n.entry-content .kit-hero .kt-row-column-wrap{align-items:center;gap:clamp(1rem,3.5vw,3rem)}\n.entry-content .kit-hero h1{font-size:clamp(2.3rem,4.2vw,3.8rem);font-weight:680;letter-spacing:-.048em}\n.entry-content .kit-hero h2{font-size:1.4rem;margin-top:0}\n.kit-hero>.kt-row-column-wrap>.kit-column:last-child>.kt-inside-inner-col{padding:1.35rem;background:#fff;border:1px solid #c6d2c9;border-radius:10px}\n.kit-hero .kit-hero-table{margin-block:1rem 0}\n.kit-hero-table table{width:100%;border:0;border-collapse:collapse;font-variant-numeric:tabular-nums}\n.kit-hero-table td{padding:.48rem 0;border:0;border-bottom:1px solid #d1dbd1}\n.kit-hero-table tr:last-child td{border-bottom:0}\n.kit-hero-table td:last-child{text-align:right;font-weight:700}\n.entry-content .kit-services .kt-row-column-wrap{gap:1.1rem}\nbody #wrapper{background:#f5f6f0}\nbody .site-container{max-width:1160px}\n.site-footer{background:#e3ebdf;border-top:1px solid #cbd6ce}\na:focus-visible,button:focus-visible{outline:3px solid #a65015;outline-offset:3px}\n@media(max-width:500px){.kit-table th,.kit-table td{padding:.4rem .31rem}.kit-hero{margin-bottom:1.65rem}}"
    },
    {
      "step": "runPHP",
      "code": "<?php\nrequire '/wordpress/wp-load.php';\n$records = json_decode(file_get_contents('/tmp/kitrx-pages.json'), true, 512, JSON_THROW_ON_ERROR);\n$ids = array();\nforeach ($records as $record) {\n    $existing = get_page_by_path($record['slug']);\n    $spec = array('post_type' => 'page', 'post_title' => $record['title'], 'post_name' => $record['slug'],\n                  'post_content' => $record['content'], 'post_status' => 'publish', 'comment_status' => 'closed');\n    if ($existing) { $spec['ID'] = $existing->ID; }\n    $id = wp_insert_post(wp_slash($spec), true);\n    if (is_wp_error($id)) { throw new Exception($id->get_error_message()); }\n    $ids[$record['slug']] = $id;\n}\nupdate_option('show_on_front', 'page');\nupdate_option('page_on_front', $ids['services']);\nset_theme_mod('page_title', false);\nset_theme_mod('page_layout', 'normal');\nset_theme_mod('page_content_style', 'unboxed');\n$pages_url = admin_url('edit.php?post_type=page');\nset_theme_mod('footer_html_content', 'Kit Rx · <a href=\"' . esc_url($pages_url) . '\">Edit these sample pages</a>');\nset_theme_mod('header_tagline', false);\n$menu = wp_get_nav_menu_object('Kit Rx pages');\nif (!$menu) {\n    $menu_id = wp_create_nav_menu('Kit Rx pages');\n    if (is_wp_error($menu_id)) { throw new Exception($menu_id->get_error_message()); }\n    foreach ($records as $record) {\n        wp_update_nav_menu_item($menu_id, 0, array('menu-item-type' => 'post_type', 'menu-item-object' => 'page',\n            'menu-item-object-id' => $ids[$record['slug']], 'menu-item-title' => $record['title'], 'menu-item-status' => 'publish'));\n    }\n    wp_update_nav_menu_item($menu_id, 0, array('menu-item-type' => 'custom', 'menu-item-title' => 'Edit demo',\n        'menu-item-url' => admin_url('edit.php?post_type=page'), 'menu-item-status' => 'publish'));\n} else { $menu_id = $menu->term_id; }\nset_theme_mod('nav_menu_locations', array('primary' => $menu_id, 'mobile' => $menu_id));\nwp_update_custom_css_post(file_get_contents('/tmp/kitrx-theme.css'));\nupdate_user_meta(get_current_user_id() ?: 1, 'show_admin_bar_front', 'false');\n"
    }
  ]
}
