/* Pricing grid used to render the [plan_sort_code_block] shortcode inside dynamic_html
   sections, matching the home page's "Honest pricing. No surprises." look (partials/pricing.blade.php).
   Extracted from home.css (.pricing/.price-grid/.plan* block) into its own file so pages using
   only a dynamic_html section aren't forced to load the rest of home.css (hero, testimonials,
   proof grid, etc.) just for the pricing cards. Class names verified collision-free against
   every other stylesheet already loaded on these pages (features.css, about.css, how-it-works.css,
   legal.css, faqs.css, global.css, old-theme-compat.css) before extracting. */

.pricing{
  background:var(--bg);
}
section.block.pricing{
  padding-top:0;
}
.pricing .block-head{
  padding:80px 0 0;
}

.price-grid, .price-toggle-wrap, .pricing-foot {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.wrap .price-grid, .wrap .price-toggle-wrap, .wrap .pricing-foot {
  padding-left: 0;
  padding-right: 0;
}

.price-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:18px;
  align-items:start;
}
.plan{
  background:var(--paper);
  border:1.5px solid var(--rule);
  border-radius:22px;
  padding:32px 26px 32px;
  transition:transform .35s ease, box-shadow .35s ease;
}
.plan:hover{
  transform:translateY(-4px);
  box-shadow:var(--shadow);
}
.plan.featured{
  background:var(--ink);
  color:#fff;
  border-color:var(--ink);
  transform:rotate(-1.2deg);
  position:relative;
  z-index:2;
  box-shadow:var(--shadow-lg);
}
.plan.featured:hover{
  transform:rotate(-1.2deg) translateY(-4px);
}
.plan.featured::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at top right, rgba(255,204,0,0.12), transparent 50%);
  border-radius:22px;
  pointer-events:none;
}
.plan-tag{
  display:inline-block;
  font-size:11px;
  font-weight:700;
  letter-spacing:0.14em;
  text-transform:uppercase;
  color:var(--ink-3);
  margin-bottom:18px;
}
.plan.featured .plan-tag{
  background:var(--accent);
  color:var(--accent-ink);
  padding:5px 11px;
  border-radius:999px;
}
.plan h3{
  font-family:var(--display);
  font-size:24px;
  font-weight:700;
  margin-bottom:12px;
  color:var(--ink);
}
.plan.featured h3{ color:#fff }
.plan .price{
  font-family:var(--display);
  font-size:46px;
  font-weight:700;
  line-height:1;
  letter-spacing:-0.035em;
  color:var(--ink);
  margin-bottom:6px;
}
.plan.featured .price{ color:var(--accent) }
.plan .price .currency{
  font-size:24px;
  font-weight:600;
  vertical-align:top;
  margin-right:2px;
}
.plan .price .period{
  font-size:14px;
  font-weight:500;
  color:var(--ink-3);
  margin-left:6px;
}
.plan.featured .price .period{ color:#a8a79f }
.plan .sub{
  font-size:13px;
  color:var(--ink-3);
  margin-bottom:24px;
}
.plan.featured .sub{ color:#a8a79f }
.plan ul{
  list-style:none;
  margin:0 0 28px;
  padding:0;
}
.plan ul li{
  font-size:14px;
  color:var(--ink-2);
  padding:9px 0;
  border-top:1px dashed var(--rule);
  display:flex;
  align-items:flex-start;
  gap:10px;
}
.plan.featured ul li{
  color:#cdcbc2;
  border-top-color:#2a2823;
}
.plan ul li::before{
  content:"✓";
  color:var(--accent-deep);
  font-weight:800;
  flex-shrink:0;
}
.plan.featured ul li::before{ color:var(--accent) }
.plan ul li:first-child{ border-top:none; padding-top:0 }
.plan .btn{
  width:100%;
  justify-content:center;
}
.pricing-foot{
  text-align:center;
  margin-top:36px;
  font-size:14px;
  color:var(--ink-3);
}
.pricing-foot a{
  color:var(--ink);
  font-weight:700;
  border-bottom:2px solid var(--accent);
  padding-bottom:1px;
}

@media (max-width:1100px){
  .price-grid{ grid-template-columns:repeat(2,1fr); gap:18px }
  .plan.featured{ transform:none }
  .plan.featured:hover{ transform:translateY(-4px) }
}

@media (max-width:768px){
  .price-grid{ grid-template-columns:1fr; gap:16px }
}

/* Personal/Commercial tabs + commercial enquiry panel for the [pricing_tabs] shortcode (App\Support\Shortcodes).
   Extracted from home.css; the generic form-* rules are scoped under .commercial-form so they can't leak
   onto other forms on the page. Toggle behaviour lives in home.js. */
.price-toggle{
    display:inline-flex;
    background:var(--paper);
    border:1.5px solid var(--rule);
    border-radius:14px;
    padding:5px;
    margin:0 auto 40px;
    box-shadow:var(--shadow-xs);
  }
.price-toggle-wrap{
    display:flex;
    justify-content:center;
  }
.price-toggle button{
    font-family:var(--sans);
    font-size:13.5px;
    font-weight:600;
    color:var(--ink-2);
    background:transparent;
    border:none;
    padding:10px 22px;
    border-radius:10px;
    cursor:pointer;
    transition:all .2s ease;
  }
.price-toggle button:hover{ color:var(--ink) }
.price-toggle button.active{
    background:var(--ink);
    color:#fff;
  }
.price-panel{ display:none }
.price-panel.active{ display:block }
.commercial-form{
    max-width:780px;
    margin:0 auto;
    background:var(--paper);
    border:1.5px solid var(--rule);
    border-radius:22px;
    padding:44px 48px;
    box-shadow:var(--shadow-sm);
  }
.commercial-form-head{
    text-align:center;
    margin-bottom:32px;
  }
.commercial-form-head h3{
    font-family:var(--display);
    font-size:28px;
    font-weight:700;
    letter-spacing:-0.022em;
    margin:0 0 10px;
  }
.commercial-form-head p{
    font-size:15px;
    color:var(--ink-2);
    line-height:1.55;
    margin:0;
    max-width:520px;
    margin-left:auto;
    margin-right:auto;
  }
.commercial-form .form-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
    margin-bottom:18px;
  }
.commercial-form .form-row-3{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:18px;
    margin-bottom:18px;
  }
.commercial-form .form-field{
    display:flex;
    flex-direction:column;
    gap:6px;
  }
.commercial-form .form-field.full{ grid-column:1/-1 }
.commercial-form .form-field label{
    font-size:13px;
    font-weight:600;
    color:var(--ink);
  }
.commercial-form .form-field input, .commercial-form .form-field select, .commercial-form .form-field textarea{
    width:100%;
    background:var(--paper);
    border:1.5px solid var(--rule-3);
    border-radius:10px;
    padding:12px 14px;
    font-family:var(--sans);
    font-size:14px;
    font-weight:500;
    color:var(--ink);
    transition:border-color .15s ease, box-shadow .15s ease;
  }
.commercial-form .form-field textarea{
    resize:vertical;
    min-height:120px;
    line-height:1.55;
  }
.commercial-form .form-field input::placeholder, .commercial-form .form-field textarea::placeholder{
    color:var(--ink-4);
    font-weight:400;
  }
.commercial-form .form-field input:focus, .commercial-form .form-field select:focus, .commercial-form .form-field textarea:focus{
    outline:none;
    border-color:var(--accent);
    box-shadow:var(--shadow-focus);
  }
.commercial-form .form-field select{
    appearance:none;
    -webkit-appearance:none;
    background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%237C766B' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
    background-repeat:no-repeat;
    background-position:right 14px center;
    padding-right:36px;
  }
.commercial-form .form-foot{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-top:28px;
    padding-top:24px;
    border-top:1px dashed var(--rule);
    gap:20px;
  }
.commercial-form .form-foot .helper{
    font-size:13px;
    color:var(--ink-3);
    line-height:1.5;
  }
@media (max-width:1100px){
  .commercial-form{ padding:36px 32px }
  .commercial-form .form-row-3{ grid-template-columns:1fr 1fr }
  .commercial-form .form-row-3 .form-field:first-child{ grid-column:1/-1 }
}
@media (max-width:768px){
  .commercial-form{ padding:28px 22px }
  .commercial-form .form-row, .commercial-form .form-row-3{ grid-template-columns:1fr; gap:14px; margin-bottom:14px }
  .commercial-form .form-foot{ flex-direction:column; align-items:stretch }
  .commercial-form .form-foot .btn{ width:100%; justify-content:center }
}

/* Heading block admins put above [pricing_tabs] inside the Dynamic HTML (same look as the home
   page's "Honest pricing" head). Scoped to .pricing; home.css styles it on the home page. */
.pricing .block-head{ text-align:center; max-width:760px; margin-left:auto; margin-right:auto; margin-bottom:72px }
.pricing .block-head .eyebrow{ margin-bottom:24px }
.pricing .block-head h2{ font-family:var(--display); font-size:clamp(40px, 5vw, 68px); font-weight:600; line-height:1; letter-spacing:-0.03em; margin:0 0 20px }
.pricing .block-head h2 em{ font-style:italic; font-weight:500; color:var(--ink-2) }
.pricing .block-head p{ font-size:18px; color:var(--ink-2); line-height:1.6; max-width:580px; margin:0 auto }

/* Section shell spacing (home.css's section.block) so whatever follows the pricing block isn't
   flush against "Need something custom?". Top stays 0: the .block-head carries its own padding. */
section.block.pricing{ padding-bottom:120px }
@media (max-width:768px){
  section.block.pricing{ padding-bottom:80px }
}

/* A bare [plan_sort_code_block] (no admin-written <section class="block pricing"> around it, e.g.
   About's full-width dynamic_html) has no section padding, so "Need something custom?" sat flush
   against the footer/next section. Give the foot its own bottom gap; inside the section shell the
   section's padding-bottom already covers it. */
.pricing-foot{ margin-bottom:96px }
section.block.pricing .pricing-foot{ margin-bottom:0 }
@media (max-width:768px){
  .pricing-foot{ margin-bottom:64px }
  section.block.pricing .pricing-foot{ margin-bottom:0 }
}
