/* Orcanically Tools - standalone styles for the free tools (extracted from site/assets/css/design-system.css).
   On orcanically.co.za the Breakdance design system already contains these rules; this file makes the plugin usable on other sites too. */
/* Orcanically design system - Breakdance-compatible (flat class selectors, :root vars, exact breakpoint queries)
   Brand: green #306D4A / dark green #27593C / copper #AC663E / gold #D4AF37 / navy #16163F
   Fonts: Merriweather (headings, light) + Montserrat (body) - both Google Fonts, auto-loaded by Breakdance */
:root {
  --green: #306D4A;
  --green-dark: #27593C;
  --green-ink: #1B3A28;
  --leaf: #5FAF63;
  --copper: #AC663E;
  --copper-dark: #8E5232;
  --gold: #D4AF37;
  --navy: #16163F;
  --ink: #222222;
  --grey: #666666;
  --grey-light: #8A8A8A;
  --line: #E1E5E2;
  --mist: #F3F6F4;
  --cream: #FBF8F2;
  --white: #FFFFFF;
  --font-heading: 'Merriweather', Georgia, serif;
  --font-body: 'Montserrat', Arial, sans-serif;
  --container: 1180px;
  --radius: 10px;
  --radius-lg: 18px;
  --shadow: 0 10px 30px rgba(27, 58, 40, 0.10);
  --shadow-sm: 0 2px 10px rgba(27, 58, 40, 0.08);
}

/* ---------- tools ---------- */
.tool { background-color: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); }
.tool-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: end; }
.tool-form--simple { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.tool-field { display: flex; flex-direction: column; gap: 6px; }
.tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tool-status { font-family: var(--font-body); font-size: 14px; color: var(--grey); margin-top: 14px; min-height: 20px; }
.tool-result { margin-top: 28px; display: none; }
.tool-result.is-visible { display: block; }
.tool-error { font-family: var(--font-body); font-size: 14px; color: var(--copper-dark); background-color: #FBF1EA; border: 1px solid #F0D9C7; border-radius: 8px; padding: 14px 16px; margin-top: 14px; display: none; }
.tool-error.is-visible { display: block; }
.scores { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-bottom: 24px; }
.score { text-align: center; padding: 20px 12px; border-radius: var(--radius); background-color: var(--mist); }
.score-ring { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 10px auto; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 26px; color: var(--green-ink); background-image: conic-gradient(var(--leaf) calc(var(--pct, 0) * 1%), var(--line) 0); position: relative; }
.score-ring::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background-color: var(--white); }
.score-val { position: relative; z-index: 1; }
.score-ring--good { --ring: var(--leaf); }
.score-ring--ok { background-image: conic-gradient(var(--gold) calc(var(--pct, 0) * 1%), var(--line) 0); }
.score-ring--bad { background-image: conic-gradient(var(--copper) calc(var(--pct, 0) * 1%), var(--line) 0); }
.score-label { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--grey); }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.metric { padding: 14px 16px; border-radius: 8px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.metric-name { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--grey); }
.metric-val { font-family: var(--font-heading); font-size: 22px; color: var(--green-ink); }
.metric--good { border-left: 4px solid var(--leaf); }
.metric--ok { border-left: 4px solid var(--gold); }
.metric--bad { border-left: 4px solid var(--copper); }
.checks { display: flex; flex-direction: column; gap: 10px; }
.check { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border-radius: 8px; border: 1px solid var(--line); }
.check-mark { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--white); }
.check--pass .check-mark { background-color: var(--leaf); }
.check--warn .check-mark { background-color: var(--gold); color: var(--green-ink); }
.check--fail .check-mark { background-color: var(--copper); }
.check-title { font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--green-ink); margin: 0 0 2px 0; }
.check-detail { font-family: var(--font-body); font-size: 14px; line-height: 1.55; color: var(--grey); margin: 0; }
.opps { display: flex; flex-direction: column; gap: 10px; }
.opp { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-radius: 8px; background-color: var(--mist); font-family: var(--font-body); font-size: 14px; color: var(--ink); }
.opp-save { font-weight: 700; color: var(--copper); white-space: nowrap; }
.tool-cta { margin-top: 28px; background-color: var(--green-ink); color: var(--white); border-radius: var(--radius-lg); padding: 28px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.tool-cta-title { font-family: var(--font-heading); font-size: 22px; font-weight: 400; color: var(--white); margin: 0 0 6px 0; }
.tool-cta-text { font-family: var(--font-body); font-size: 14.5px; color: rgba(255, 255, 255, 0.85); margin: 0; }
.tool-screenshot { width: 100%; max-width: 360px; border-radius: 8px; border: 1px solid var(--line); }
.calc-out { background-color: var(--green-ink); color: var(--white); border-radius: var(--radius-lg); padding: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.calc-num { font-family: var(--font-heading); font-size: 32px; color: var(--gold); line-height: 1; margin-bottom: 6px; }
.calc-label { font-family: var(--font-body); font-size: 13px; color: rgba(255, 255, 255, 0.8); }
.range { width: 100%; accent-color: var(--green); }
.range-val { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--green); }
.serp { border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; background-color: var(--white); font-family: Arial, sans-serif; max-width: 600px; }
.serp-url { font-size: 14px; color: #202124; margin-bottom: 4px; }
.serp-title { font-size: 20px; color: #1a0dab; margin: 0 0 4px 0; line-height: 1.3; }
.serp-desc { font-size: 14px; color: #4d5156; line-height: 1.55; margin: 0; }
.counter { font-family: var(--font-body); font-size: 12px; color: var(--grey-light); }
.counter--over { font-family: var(--font-body); font-size: 12px; color: var(--copper-dark); font-weight: 700; }
.copy-box { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-top: 16px; }
.qr { width: 160px; height: 160px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background-color: var(--white); }

/* ---------- typography ---------- */
.eyebrow { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper); margin-bottom: 14px; }
.eyebrow--light { font-family: var(--font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.h1 { font-family: var(--font-heading); font-weight: 300; font-size: 50px; line-height: 1.15; color: var(--green-ink); margin: 0 0 22px 0; }
.h2 { font-family: var(--font-heading); font-weight: 300; font-size: 36px; line-height: 1.2; color: var(--green-ink); margin: 0 0 18px 0; }
.h3 { font-family: var(--font-heading); font-weight: 400; font-size: 22px; line-height: 1.3; color: var(--green-ink); margin: 0 0 12px 0; }
.h4 { font-family: var(--font-body); font-weight: 700; font-size: 17px; line-height: 1.35; color: var(--green-ink); margin: 0 0 8px 0; }
.h1--light { font-family: var(--font-heading); font-weight: 300; font-size: 50px; line-height: 1.15; color: var(--white); margin: 0 0 22px 0; }
.h2--light { font-family: var(--font-heading); font-weight: 300; font-size: 36px; line-height: 1.2; color: var(--white); margin: 0 0 18px 0; }
.h3--light { font-family: var(--font-heading); font-weight: 400; font-size: 22px; line-height: 1.3; color: var(--white); margin: 0 0 12px 0; }
.strong { font-weight: 700; color: var(--green); }
.lead { font-family: var(--font-body); font-size: 20px; line-height: 1.6; color: var(--grey); margin: 0 0 24px 0; }
.lead--light { font-family: var(--font-body); font-size: 20px; line-height: 1.6; color: rgba(255, 255, 255, 0.88); margin: 0 0 24px 0; }
.text { font-family: var(--font-body); font-size: 17px; line-height: 1.7; color: var(--ink); margin: 0 0 16px 0; }
.text--light { font-family: var(--font-body); font-size: 17px; line-height: 1.7; color: rgba(255, 255, 255, 0.9); margin: 0 0 16px 0; }
.text--muted { font-family: var(--font-body); font-size: 15px; line-height: 1.6; color: var(--grey); margin: 0 0 12px 0; }
.small { font-family: var(--font-body); font-size: 13px; line-height: 1.5; color: var(--grey-light); margin: 0; }
.center { text-align: center; }
.link { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link:hover { color: var(--copper); }
.link--light { color: var(--white); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.link--light:hover { color: var(--gold); }
.link-arrow { color: var(--green); font-weight: 700; text-decoration: none; }
.link-arrow:hover { color: var(--copper); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--font-body); font-weight: 700; font-size: 15px; line-height: 1; padding: 16px 26px; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background-color: var(--green); color: var(--white); border-color: var(--green); }
.btn--primary:hover { background-color: var(--green-dark); color: var(--white); border-color: var(--green-dark); }
.btn--copper { background-color: var(--copper); color: var(--white); border-color: var(--copper); }
.btn--copper:hover { background-color: var(--copper-dark); color: var(--white); border-color: var(--copper-dark); }
.btn--outline { background-color: transparent; color: var(--green); border-color: var(--green); }
.btn--outline:hover { background-color: var(--green); color: var(--white); border-color: var(--green); }
.btn--light { background-color: var(--white); color: var(--green-dark); border-color: var(--white); }
.btn--light:hover { background-color: var(--gold); color: var(--green-ink); border-color: var(--gold); }
.btn--ghost { background-color: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.6); }
.btn--ghost:hover { background-color: var(--white); color: var(--green-dark); border-color: var(--white); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.btn--lg { padding: 19px 34px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 12px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.input { width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--ink); padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background-color: var(--white); }
.input:focus { outline: 2px solid var(--leaf); border-color: var(--leaf); }
.label { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--grey); margin-bottom: 4px; display: block; }
.form-note { font-family: var(--font-body); font-size: 12px; color: var(--grey-light); margin: 0; }
.select { width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--ink); padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background-color: var(--white); }

/* ---------- cards ---------- */
.card { background-color: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 12px; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card--mist { background-color: var(--mist); border: 1px solid var(--mist); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.card--dark { background-color: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 12px; color: var(--white); }
.card-link { text-decoration: none; color: inherit; }
.card-icon { width: 48px; height: 48px; color: var(--green); margin-bottom: 6px; }
.card-icon--copper { width: 48px; height: 48px; color: var(--copper); margin-bottom: 6px; }
.card-icon--gold { width: 48px; height: 48px; color: var(--gold); margin-bottom: 6px; }
.card-title { font-family: var(--font-heading); font-weight: 400; font-size: 21px; line-height: 1.3; color: var(--green-ink); margin: 0; }
.card-title--light { font-family: var(--font-heading); font-weight: 400; font-size: 21px; line-height: 1.3; color: var(--white); margin: 0; }
.card-text { font-family: var(--font-body); font-size: 15px; line-height: 1.65; color: var(--grey); margin: 0; }
.card-text--light { font-family: var(--font-body); font-size: 15px; line-height: 1.65; color: rgba(255, 255, 255, 0.82); margin: 0; }
.card-price { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--copper); margin: 0; }
.card-foot { margin-top: auto; padding-top: 6px; }
.badge { display: inline-block; font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-dark); background-color: rgba(95, 175, 99, 0.18); padding: 6px 10px; border-radius: 999px; }
.badge--copper { display: inline-block; font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--white); background-color: var(--copper); padding: 6px 10px; border-radius: 999px; }
.badge--gold { display: inline-block; font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-ink); background-color: var(--gold); padding: 6px 10px; border-radius: 999px; }

/* ---------- lists ---------- */
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check-item { font-family: var(--font-body); font-size: 16px; line-height: 1.55; color: var(--ink); padding-left: 32px; position: relative; }
.check-item::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background-color: rgba(95, 175, 99, 0.2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23306D4A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M5 10.5l3 3 7-7'/%3E%3C/svg%3E"); background-size: 14px; background-position: center; background-repeat: no-repeat; }
.check-item--light { font-family: var(--font-body); font-size: 16px; line-height: 1.55; color: rgba(255, 255, 255, 0.9); padding-left: 32px; position: relative; }
.check-item--light::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background-color: rgba(212, 175, 55, 0.25); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23D4AF37' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M5 10.5l3 3 7-7'/%3E%3C/svg%3E"); background-size: 14px; background-position: center; background-repeat: no-repeat; }
.cross-item { font-family: var(--font-body); font-size: 16px; line-height: 1.55; color: var(--ink); padding-left: 32px; position: relative; }
.cross-item::before { content: ''; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background-color: rgba(172, 102, 62, 0.18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%23AC663E' stroke-width='2.2' stroke-linecap='round' d='M6 6l8 8M14 6l-8 8'/%3E%3C/svg%3E"); background-size: 12px; background-position: center; background-repeat: no-repeat; }
.pain-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.pain-box { background-color: var(--white); border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--line); }
.pain-box--good { background-color: var(--green-ink); color: var(--white); border-radius: var(--radius-lg); padding: 32px; border: 1px solid var(--green-ink); }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.container--narrow { width: 100%; max-width: 820px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.section { padding-top: 88px; padding-bottom: 88px; background-color: var(--white); }
.section--tight { padding-top: 56px; padding-bottom: 56px; }
.section--mist { background-color: var(--mist); }
.section--cream { background-color: var(--cream); }
.section--green { background-color: var(--green-dark); color: var(--white); }
.section--ink { background-color: var(--green-ink); color: var(--white); }
.section-head { max-width: 760px; margin-bottom: 44px; }
.section-head--center { max-width: 760px; margin-left: auto; margin-right: auto; margin-bottom: 44px; text-align: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.split--reverse { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.row--center { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; }


@media (max-width: 1023px) { .tool-form { grid-template-columns: minmax(0, 1fr); } .tool-form--simple { grid-template-columns: minmax(0, 1fr); } .scores { grid-template-columns: repeat(2, minmax(0, 1fr)); } .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tool-cta { grid-template-columns: minmax(0, 1fr); } .calc-out { grid-template-columns: minmax(0, 1fr); } .split { grid-template-columns: minmax(0, 1fr); } .grid-2 { grid-template-columns: minmax(0, 1fr); } .grid-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 479px) { .metrics { grid-template-columns: minmax(0, 1fr); } .btn { width: 100%; } .tool { padding: 18px; } }
