/* ==========================================================================
   wc (wc-) — WooCommerce hosting landing page
   Builds on hosting-a (hs-) for the hero, plan cards, compare table and help band.
   ========================================================================== */

/* ---------- shared ---------- */
:where(ol.wc-steps, ol.wc-howto, ol.wc-flow__steps) { list-style: none; margin: 0; padding: 0; }
.wc-band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wc-split { align-items: start; }
.wc-split > :last-child { position: sticky; top: calc(var(--hs-stick, 120px) + 28px); }
.wc-split--top > :last-child { position: static; }
.wc-split .section-head { margin-bottom: 26px; }
.wc-copy { display: grid; gap: 14px; }
.wc-copy p { font-size: 1rem; line-height: 1.7; color: var(--ink-2); }
.wc-copy strong { font-weight: 580; color: var(--ink); }
.wc-copy a, .wc-after a, .wc-note a { color: var(--accent); }
.wc-sub { margin: 30px 0 14px; font-size: 1.12rem; font-weight: 580; letter-spacing: -0.02em; }
.wc-list { margin-top: 18px; }
.wc-list li { font-size: 0.95rem; line-height: 1.55; }
.wc-sub + .wc-list { margin-top: 0; }
.wc-after { margin-top: 20px; font-size: 0.93rem; line-height: 1.65; color: var(--muted); }
.wc-status--redis { background: color-mix(in srgb, var(--accent) 6%, transparent); color: var(--accent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }

/* ---------- hero mock ---------- */
.wc-mock__rules { border-radius: 12px; border: 1px solid var(--line); overflow: hidden; }
.wc-mock__h { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; background: var(--bg); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.wc-mock__rules li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; }
.wc-mock__rules li + li { border-top: 1px solid var(--line); }
.wc-mock__rules code { padding: 0; border: 0; background: none; font-size: 0.8rem; color: var(--ink-2); }

/* ---------- caching ---------- */
.wc-tips { display: grid; gap: 10px; margin-top: 26px; }
.wc-tips li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); font-size: 0.92rem; line-height: 1.55; color: var(--ink-2); }
.wc-tips svg { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.wc-tips b { font-weight: 580; color: var(--ink); }

.wc-rules { border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.wc-rules__head { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.wc-rules__head b { display: block; margin-top: 4px; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--ink); }
.wc-rules__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 14px 22px; }
.wc-rules__list li + li { border-top: 1px solid var(--line); }
.wc-rules__what b { display: block; font-size: 0.92rem; font-weight: 560; color: var(--ink); }
.wc-rules__what code { display: inline-block; max-width: 100%; margin-top: 5px; padding: 1px 6px; font-size: 0.74rem; color: var(--muted); overflow-wrap: anywhere; }
.wc-rules__foot { display: flex; align-items: center; gap: 8px; padding: 13px 22px; background: var(--bg); border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }
.wc-rules__foot svg { width: 15px; height: 15px; color: var(--accent); }

/* ---------- cron ---------- */
.wc-split--flip > :first-child { order: 2; }
.wc-howto { display: grid; gap: 12px; margin-top: 22px; }
.wc-howto li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start; padding: 16px 18px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); font-size: 0.94rem; line-height: 1.6; color: var(--ink-2); }
.wc-howto b { font-weight: 580; color: var(--ink); }
.wc-howto code { overflow-wrap: anywhere; }
.wc-howto__n { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-family: var(--mono); font-size: 0.8rem; font-weight: 500; }
.wc-term { box-shadow: var(--shadow-lg); }
.wc-term .hs-term__body { gap: 4px; padding: 16px 18px 18px; font-size: 0.8rem; line-height: 1.6; }
.wc-term .hs-term__body code + code .t-dim { display: inline-block; margin-top: 10px; }
.wc-note { margin-top: 14px; font-size: 0.88rem; line-height: 1.55; color: var(--muted); }

/* ---------- steps (updates, migration) ---------- */
.wc-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.wc-steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wc-step { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.wc-step .step__num { margin-bottom: 6px; }
.wc-step h3 { font-size: 1.08rem; font-weight: 580; letter-spacing: -0.02em; line-height: 1.3; }
.wc-step p { font-size: 0.93rem; line-height: 1.6; color: var(--muted); }
.wc-callout { margin: 22px 0 0; }
.wc-callout .link { color: var(--accent); }

/* ---------- payments flow ---------- */
.wc-flow { padding: 24px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.wc-flow__title { margin-bottom: 18px; }
.wc-flow__steps { position: relative; display: grid; gap: 12px; }
.wc-flow__steps::before { content: ""; position: absolute; left: 31px; top: 24px; bottom: 24px; width: 2px; background: linear-gradient(var(--line-2), var(--accent), var(--line-2)); }
.wc-flow__step { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px 12px 10px; }
.wc-flow__ic { position: relative; z-index: 1; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--card); border: 1px solid var(--line-2); color: var(--ink-2); }
.wc-flow__ic svg { width: 19px; height: 19px; }
.wc-flow__step b { display: block; font-size: 0.96rem; font-weight: 580; letter-spacing: -0.01em; color: var(--ink); }
.wc-flow__step p { margin-top: 2px; font-size: 0.86rem; line-height: 1.5; color: var(--muted); }
.wc-flow__tag { padding: 3px 9px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; }
.wc-flow__step--gw { border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 6%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent); }
.wc-flow__step--gw .wc-flow__ic { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.wc-flow__step--gw .wc-flow__tag { background: var(--accent-soft); border-color: transparent; color: var(--accent); }

/* ---------- GST ---------- */
.wc-gstcard { border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.wc-gstcard__head { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.wc-gstcard__head b { display: block; margin-top: 4px; font-size: 1.05rem; letter-spacing: -0.02em; color: var(--ink); }
.wc-mini { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.wc-mini th, .wc-mini td { padding: 13px 22px; text-align: left; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.wc-mini thead th { padding-top: 11px; padding-bottom: 11px; background: var(--bg); font-family: var(--mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.wc-mini tbody th { font-weight: 560; color: var(--ink); }
.wc-mini td:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wc-mini tfoot th, .wc-mini tfoot td { border-bottom: 0; background: color-mix(in srgb, var(--accent) 5%, transparent); font-weight: 580; color: var(--ink); }
.wc-gstcard__links { display: grid; border-top: 1px solid var(--line); }
.wc-gstcard__link { display: grid; grid-template-columns: 20px minmax(0, 1fr) 16px; gap: 14px; align-items: center; padding: 16px 22px; color: inherit; transition: background 0.2s; }
.wc-gstcard__link + .wc-gstcard__link { border-top: 1px solid var(--line); }
.wc-gstcard__link:hover { background: color-mix(in srgb, var(--accent) 4%, var(--card)); }
.wc-gstcard__link > svg { width: 18px; height: 18px; color: var(--accent); }
.wc-gstcard__link b { display: block; font-size: 0.95rem; font-weight: 580; color: var(--ink); }
.wc-gstcard__link small { display: block; margin-top: 2px; font-size: 0.84rem; line-height: 1.45; color: var(--muted); }
.wc-gstcard__link .wc-go { width: 16px; height: 16px; color: var(--faint); transition: transform 0.2s, color 0.2s; }
.wc-gstcard__link:hover .wc-go { transform: translateX(3px); color: var(--accent); }

/* ---------- store sizes ---------- */
.wc-ctable td { line-height: 1.45; }
.wc-tablenote { margin-top: 14px; text-align: center; font-size: 0.86rem; color: var(--muted); }
.wc-signs { margin-top: 40px; padding: 28px 30px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.wc-signs h3, .wc-after-move h3 { text-wrap: balance; }
.wc-signs h3 { margin-bottom: 14px; font-size: 1.2rem; font-weight: 580; letter-spacing: -0.025em; }
.wc-signs__list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.wc-signs__k { font-size: 0.95rem; line-height: 1.5; color: var(--ink-2); }
.wc-signs__v { justify-self: end; padding: 4px 12px; border-radius: 999px; background: var(--accent-soft); font-size: 0.82rem; font-weight: 560; color: var(--accent); white-space: nowrap; }

/* ---------- migration ---------- */
.wc-mig__grid { display: grid; gap: 14px; }
.wc-after-move { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 16px 40px; align-items: start; padding: 28px 30px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.wc-after-move h3 { font-size: 1.2rem; font-weight: 580; letter-spacing: -0.025em; }
.wc-after-move .check-list { grid-row: span 2; }
.wc-after-move .check-list li { font-size: 0.93rem; line-height: 1.55; }
.wc-after-move__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.wc-after-move__ctas .link { color: var(--accent); font-weight: 560; font-size: 0.93rem; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .wc-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wc-steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .wc-step { padding: 22px 20px; }
}
@media (max-width: 820px) {
  .wc-split > :last-child { position: static; }
  .wc-split--flip > :first-child { order: 0; }
  .wc-split { gap: 40px; }
  .wc-steps--3 { grid-template-columns: minmax(0, 1fr); }
  .wc-after-move { grid-template-columns: minmax(0, 1fr); }
  .wc-after-move .check-list { grid-row: auto; }
}
@media (max-width: 640px) {
  .wc-steps { grid-template-columns: minmax(0, 1fr); }
  .wc-rules__head, .wc-gstcard__head { padding: 16px 18px; }
  .wc-rules__list li { grid-template-columns: minmax(0, 1fr); padding: 13px 18px; }
  .wc-rules__list .hs-status { justify-self: start; }
  .wc-rules__foot { padding: 12px 18px; }
  .wc-howto li { grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 16px 16px 16px 14px; }
  .wc-howto__n { width: 26px; height: 26px; font-size: 0.74rem; }
  .wc-flow { padding: 18px 16px; }
  .wc-flow__step { grid-template-columns: 44px minmax(0, 1fr); padding-right: 12px; }
  .wc-flow__tag { grid-column: 2; justify-self: start; }
  .wc-mini th, .wc-mini td { padding: 12px 14px; }
  .wc-mini td:last-child { white-space: normal; }
  .wc-gstcard__link { padding: 15px 18px; }
  .wc-signs, .wc-after-move { padding: 22px 18px; }
  .wc-signs__list li { grid-template-columns: minmax(0, 1fr); }
  .wc-signs__v { justify-self: start; }
}
