/* MailOptimal — Free Tools styles (ported from the tool widget kit, MailOptimal palette) */
/* ============================================================================
   OUTBOUNDRY · FREE TOOLS
   Shared styles for the embeddable tool widgets (.obx-tool) + the tool-page
   layout chrome (hero, stage, how-it-works, related, hub grid).
   Widget palette tracks the Outboundry brand (purple #e96321).
   The .obx-tool wrapper uses all:initial so widgets never inherit theme drift.
============================================================================ */

/* ───────── Widget base ───────── */
.obx-tool{
  --ink:#18181b; --brand:#e96321; --brand-ink:#cf4f16; --accent:#e96321;
  --ok:#16A34A; --warn:#C98A00; --bad:#DC2626;
  --bg:#f7f7fb; --card:#ffffff; --line:#eaecf0; --line-2:#dcdfe6;
  --muted:#52525b; --soft:#FDF1EA; --soft-2:#F8DAC8;
  --radius:16px;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --sans:'Inter',ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  all:initial; display:block; font-family:var(--sans); color:var(--ink);
  line-height:1.5; -webkit-font-smoothing:antialiased; text-align:left;
  max-width:720px; margin:0 auto;
}
.obx-tool *{ box-sizing:border-box; font-family:inherit; }
.obx-tool [hidden]{ display:none !important; }

.obx-card{ background:var(--card); border:1px solid var(--line); border-radius:var(--radius);
  padding:30px 28px; box-shadow:0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04); }
.obx-eyebrow{ font-size:12px; font-weight:800; letter-spacing:.13em; text-transform:uppercase;
  color:var(--brand); margin:0 0 8px; }
.obx-h{ font-size:26px; line-height:1.15; font-weight:800; margin:0 0 8px; color:var(--ink); letter-spacing:-.02em; }
.obx-sub{ font-size:15px; color:var(--muted); margin:0 0 22px; line-height:1.55; }

/* form layout */
.obx-row{ display:flex; gap:12px; flex-wrap:wrap; }
.obx-field{ flex:1 1 240px; min-width:0; }
.obx-field--full{ flex:1 1 100%; }
.obx-lbl{ display:block; font-size:13px; font-weight:700; color:var(--ink); margin:0 0 7px; }
.obx-lbl .obx-lbl-opt{ font-weight:500; color:var(--muted); }

.obx-tool input[type=text], .obx-tool input[type=email], .obx-tool input[type=number],
.obx-tool input[type=url], .obx-tool select{
  width:100%; height:48px; padding:0 14px; font-size:15px; color:var(--ink); background:#fff;
  border:1.5px solid var(--line-2); border-radius:11px; outline:none; appearance:none;
  transition:border-color .15s, box-shadow .15s; }
.obx-tool select{ background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2352525b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 13px center; background-size:18px; padding-right:40px; }
.obx-tool textarea{ width:100%; min-height:150px; padding:13px 15px; font-size:15px; color:var(--ink);
  background:#fff; border:1.5px solid var(--line-2); border-radius:12px; outline:none; resize:vertical;
  line-height:1.55; transition:border-color .15s, box-shadow .15s; }
.obx-tool input:focus, .obx-tool select:focus, .obx-tool textarea:focus{
  border-color:var(--brand); box-shadow:0 0 0 3px rgba(233,99,33,.16); }
.obx-tool input::placeholder, .obx-tool textarea::placeholder{ color:#a1a1aa; }

/* buttons */
.obx-btn{ height:48px; padding:0 24px; font-size:15px; font-weight:700; color:#fff; cursor:pointer;
  background:var(--brand); border:none; border-radius:11px; transition:background .15s, transform .05s, box-shadow .15s;
  white-space:nowrap; display:inline-flex; align-items:center; justify-content:center; gap:9px;
  box-shadow:0 1px 2px rgba(233,99,33,.30), 0 8px 20px -10px rgba(233,99,33,.45); }
.obx-btn:hover{ background:var(--brand-ink); transform:translateY(-1px); }
.obx-btn:active{ transform:translateY(0); }
.obx-btn:disabled{ opacity:.6; cursor:default; transform:none; }
.obx-btn--full{ width:100%; }
.obx-btn--ghost{ background:#fff; color:var(--ink); box-shadow:inset 0 0 0 1.5px var(--line-2); }
.obx-btn--ghost:hover{ background:var(--bg); color:var(--ink); }
.obx-btn svg{ width:18px; height:18px; }
.obx-hint{ font-size:12.5px; color:var(--muted); margin:10px 2px 0; }

/* segmented control / radio pills */
.obx-seg{ display:inline-flex; flex-wrap:wrap; gap:6px; padding:5px; background:var(--bg); border-radius:12px;
  border:1px solid var(--line); }
.obx-seg label{ position:relative; }
.obx-seg input{ position:absolute; opacity:0; pointer-events:none; }
.obx-seg span{ display:block; padding:9px 16px; font-size:13.5px; font-weight:650; color:var(--muted);
  border-radius:8px; cursor:pointer; transition:.15s; white-space:nowrap; }
.obx-seg input:checked + span{ background:#fff; color:var(--brand); box-shadow:0 1px 2px rgba(16,24,40,.1); }
.obx-seg input:focus-visible + span{ box-shadow:0 0 0 3px rgba(233,99,33,.25); }

/* option tiles (multi-select checkboxes) */
.obx-opts{ display:grid; grid-template-columns:repeat(2,1fr); gap:10px; }
@media (max-width:520px){ .obx-opts{ grid-template-columns:1fr; } }
.obx-opt{ display:flex; align-items:center; gap:11px; padding:13px 15px; border:1.5px solid var(--line-2);
  border-radius:12px; cursor:pointer; transition:.15s; background:#fff; }
.obx-opt:hover{ border-color:var(--brand); }
.obx-opt input{ position:absolute; opacity:0; width:0; height:0; }
.obx-opt .obx-box{ flex:none; width:20px; height:20px; border-radius:6px; border:2px solid var(--line-2);
  display:grid; place-items:center; transition:.15s; }
.obx-opt .obx-box svg{ width:13px; height:13px; color:#fff; opacity:0; transition:.1s; }
.obx-opt input:checked ~ .obx-box{ background:var(--brand); border-color:var(--brand); }
.obx-opt input:checked ~ .obx-box svg{ opacity:1; }
.obx-opt input:checked ~ .obx-opt-txt .obx-opt-n,
.obx-opt:has(input:checked){ border-color:var(--brand); background:var(--soft); }
.obx-opt-txt{ min-width:0; }
.obx-opt-n{ display:block; font-size:14px; font-weight:650; color:var(--ink); }
.obx-opt-d{ display:block; font-size:12px; color:var(--muted); margin-top:1px; }

/* sliders */
.obx-slide{ margin:0; }
.obx-slide-top{ display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin-bottom:9px; }
.obx-slide-val{ font-family:var(--mono); font-size:15px; font-weight:700; color:var(--brand); }
.obx-tool input[type=range]{ -webkit-appearance:none; appearance:none; width:100%; height:6px; border-radius:999px;
  background:var(--line); outline:none; }
.obx-tool input[type=range]::-webkit-slider-thumb{ -webkit-appearance:none; appearance:none; width:22px; height:22px;
  border-radius:50%; background:var(--brand); cursor:pointer; border:3px solid #fff; box-shadow:0 1px 4px rgba(16,24,40,.25); }
.obx-tool input[type=range]::-moz-range-thumb{ width:22px; height:22px; border-radius:50%; background:var(--brand);
  cursor:pointer; border:3px solid #fff; box-shadow:0 1px 4px rgba(16,24,40,.25); }

/* generic spacing helpers */
.obx-stack > * + *{ margin-top:18px; }
.obx-divider{ height:1px; background:var(--line); border:none; margin:22px 0; }
.obx-section-lbl{ font-size:12px; font-weight:800; letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin:0 0 12px; }

/* results / score */
.obx-results{ margin-top:24px; }
.obx-score{ display:flex; align-items:center; gap:18px; padding:20px; border-radius:14px;
  background:var(--soft); border:1px solid var(--soft-2); margin-bottom:18px; }
.obx-grade{ font-family:var(--mono); font-size:38px; font-weight:700; line-height:1; width:84px; height:84px;
  display:flex; align-items:center; justify-content:center; border-radius:50%; color:#fff; flex:none; }
.obx-score-txt strong{ display:block; font-size:17px; margin-bottom:3px; color:var(--ink); }
.obx-score-txt span{ font-size:13.5px; color:var(--muted); }

/* per-record checks */
.obx-check{ display:flex; gap:14px; padding:16px 0; border-top:1px solid var(--line); }
.obx-check:first-child{ border-top:none; }
.obx-rail{ width:4px; border-radius:4px; flex:none; }
.obx-check-body{ flex:1; min-width:0; }
.obx-check-head{ display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.obx-check-name{ font-weight:700; font-size:15px; }
.obx-pill{ font-size:11px; font-weight:800; letter-spacing:.04em; text-transform:uppercase;
  padding:3px 9px; border-radius:999px; color:#fff; }
.obx-check-note{ font-size:13.5px; color:var(--muted); margin:5px 0 0; line-height:1.5; }
.obx-record{ font-family:var(--mono); font-size:12.5px; color:var(--ink); background:rgba(24,24,27,.045);
  border-radius:9px; padding:10px 12px; margin:9px 0 0; word-break:break-all; white-space:pre-wrap; }
.s-ok .obx-rail{ background:var(--ok);}   .s-ok .obx-pill{ background:var(--ok);}
.s-warn .obx-rail{ background:var(--warn);} .s-warn .obx-pill{ background:var(--warn);}
.s-bad .obx-rail{ background:var(--bad);}  .s-bad .obx-pill{ background:var(--bad);}

/* single-result block used by the SPF/DMARC/DKIM/MX checkers */
.obx-out{ margin-top:4px; }
.obx-res{ display:flex; gap:14px; margin-top:22px; padding:18px 20px; border-radius:14px;
  background:var(--soft); border:1px solid var(--soft-2); }
.obx-res-head{ display:flex; align-items:center; gap:9px; flex-wrap:wrap; }
.obx-res-name{ font-weight:700; font-size:15.5px; }
.obx-note{ font-size:14px; color:var(--muted); margin:5px 0 0; line-height:1.5; }

/* stat tiles (calculators) */
.obx-stats{ display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; }
.obx-stat{ background:var(--card); border:1px solid var(--line); border-radius:14px; padding:18px 18px; }
.obx-stat--hero{ background:linear-gradient(160deg,var(--brand),#f0883f); border:none; color:#fff; }
.obx-stat-n{ font-size:30px; font-weight:800; letter-spacing:-.02em; line-height:1; color:var(--ink); }
.obx-stat--hero .obx-stat-n{ color:#fff; }
.obx-stat-l{ font-size:12.5px; color:var(--muted); margin-top:7px; font-weight:600; }
.obx-stat--hero .obx-stat-l{ color:rgba(255,255,255,.85); }
.obx-stat-sub{ font-size:11.5px; color:var(--muted); margin-top:3px; }
.obx-stat--hero .obx-stat-sub{ color:rgba(255,255,255,.7); }

/* funnel rows */
.obx-funnel{ display:flex; flex-direction:column; gap:2px; }
.obx-frow{ display:flex; align-items:center; justify-content:space-between; gap:14px; padding:12px 14px;
  border-radius:10px; background:var(--bg); }
.obx-frow__l{ font-size:13.5px; color:var(--muted); font-weight:600; }
.obx-frow__v{ font-family:var(--mono); font-size:15px; font-weight:700; color:var(--ink); }

/* copy-ready output */
.obx-out{ position:relative; margin-top:6px; }
.obx-out pre{ margin:0; font-family:var(--mono); font-size:13px; line-height:1.6; color:#e7e6f9;
  background:#1d1b2e; border-radius:12px; padding:18px 16px; padding-right:54px; white-space:pre-wrap; word-break:break-all; }
.obx-copy{ position:absolute; top:10px; right:10px; height:34px; padding:0 13px; font-size:12.5px; font-weight:700;
  color:#fff; background:rgba(255,255,255,.14); border:1px solid rgba(255,255,255,.22); border-radius:8px;
  cursor:pointer; display:inline-flex; align-items:center; gap:6px; transition:.15s; }
.obx-copy:hover{ background:rgba(255,255,255,.26); }
.obx-copy svg{ width:14px; height:14px; }

/* flagged terms (spam checker) */
.obx-flags{ display:flex; flex-wrap:wrap; gap:8px; }
.obx-flag{ display:inline-flex; align-items:center; gap:6px; padding:6px 11px; border-radius:999px;
  font-size:13px; font-weight:650; background:#FEF2F2; color:#991B1B; border:1px solid #FCA5A5; }
.obx-flag b{ font-weight:800; }
.obx-flag--warn{ background:#FFFBEB; color:#92670A; border-color:#FCD66B; }

/* email-signature live preview */
.obx-sig{ border:1px solid var(--line); border-radius:12px; padding:22px; background:#fff; overflow:auto; }

/* CTA on-ramp */
.obx-cta{ margin-top:20px; padding:20px 22px; border-radius:14px; border:1px solid var(--soft-2);
  background:linear-gradient(180deg,#FFF6F0,#FCE9DD); }
.obx-cta p{ margin:0 0 14px; font-size:14.5px; color:var(--ink); line-height:1.55; }
.obx-cta a{ display:inline-flex; align-items:center; gap:8px; text-decoration:none; height:46px; padding:0 22px;
  background:var(--brand); color:#fff; font-weight:700; font-size:14.5px; border-radius:11px; transition:.15s;
  box-shadow:0 8px 20px -10px rgba(233,99,33,.5); }
.obx-cta a:hover{ background:var(--brand-ink); transform:translateY(-1px); }
.obx-cta a svg{ width:17px; height:17px; }

.obx-err{ margin-top:18px; padding:14px 16px; border-radius:11px; background:#FEF2F2; border:1px solid #FCA5A5;
  color:#991B1B; font-size:14px; }
.obx-spin{ display:inline-block; width:15px; height:15px; border:2px solid rgba(255,255,255,.5);
  border-top-color:#fff; border-radius:50%; vertical-align:-2px; animation:obxspin .7s linear infinite; }
@keyframes obxspin{ to{ transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce){ .obx-spin{ animation:none; } }
@media (max-width:520px){ .obx-h{ font-size:22px; } .obx-card{ padding:24px 20px; } }

/* ============================================================================
   TOOL-PAGE CHROME  (these are theme-level, not scoped under .obx-tool)
============================================================================ */
.tool-hero{ padding:124px 0 6px; position:relative; overflow:hidden; }
.tool-hero__bg{ position:absolute; inset:0; z-index:0; pointer-events:none; background:
  radial-gradient(55% 60% at 80% 6%, rgba(233,99,33,.13), transparent 70%),
  radial-gradient(45% 55% at 12% 0%, rgba(240,136,63,.09), transparent 70%); }
.tool-hero__inner{ position:relative; z-index:1; max-width:760px; margin:0 auto; text-align:center; }
.tool-crumb{ display:inline-flex; align-items:center; gap:7px; font-size:13px; font-weight:600; color:var(--ink-3); margin-bottom:18px; }
.tool-crumb a{ color:var(--ink-3); }
.tool-crumb a:hover{ color:var(--primary); }
.tool-crumb svg{ width:14px; height:14px; opacity:.5; }
.tool-hero h1{ font-size:clamp(32px,4.6vw,50px); line-height:1.05; letter-spacing:-0.03em; margin:14px 0 0; }
.tool-hero .lead{ margin:18px auto 0; max-width:600px; font-size:18px; color:var(--ink-3); line-height:1.55; }

.tool-stage{ padding:36px 0 clamp(56px,8vw,96px); }
.tool-stage .wrap{ display:flex; justify-content:center; }

/* how it works */
.howto{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:44px; }
@media (max-width:760px){ .howto{ grid-template-columns:1fr; } }
.howstep{ background:var(--surface); border-radius:var(--r-xl); padding:24px; box-shadow:var(--shadow-sm), 0 0 0 1px var(--hairline); }
.howstep__n{ width:40px; height:40px; border-radius:11px; background:var(--primary-soft); color:var(--primary);
  display:grid; place-items:center; font-size:17px; font-weight:800; }
.howstep h4{ font-size:17px; font-weight:700; margin:16px 0 0; letter-spacing:-0.01em; }
.howstep p{ font-size:14px; color:var(--ink-3); margin:8px 0 0; line-height:1.55; }

/* related / more tools strip */
.related__grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:36px auto 0; max-width:940px; }
@media (max-width:820px){ .related__grid{ grid-template-columns:1fr; max-width:420px; } }
.related__card{ display:flex; gap:13px; align-items:flex-start; padding:18px; border-radius:var(--r-lg);
  background:var(--surface); box-shadow:0 0 0 1px var(--hairline); transition:.18s; }
.related__card:hover{ box-shadow:0 0 0 1px var(--hairline-strong), var(--shadow-md); transform:translateY(-3px); }
.related__ic{ flex:none; width:42px; height:42px; border-radius:11px; display:grid; place-items:center;
  background:var(--primary-soft); color:var(--primary); }
.related__ic svg{ width:21px; height:21px; }
.related__card > span:last-child{ display:flex; flex-direction:column; min-width:0; }
.related__tt{ display:block; font-size:15px; font-weight:700; color:var(--ink-1); }
.related__ds{ display:block; font-size:13px; color:var(--ink-3); margin-top:3px; line-height:1.45; }

/* ============================================================================
   HUB PAGE
============================================================================ */
.hub-hero{ padding:128px 0 12px; position:relative; overflow:hidden; text-align:center; }
.hub-hero__bg{ position:absolute; inset:0; z-index:0; pointer-events:none; background:
  radial-gradient(50% 60% at 78% 4%, rgba(233,99,33,.14), transparent 70%),
  radial-gradient(46% 56% at 14% 0%, rgba(240,136,63,.1), transparent 70%); }
.hub-hero__inner{ position:relative; z-index:1; max-width:780px; margin:0 auto; }
.hub-hero h1 .grad, .tool-hero h1 .grad{
  background:linear-gradient(105deg, var(--primary) 10%, #f0883f 55%, #f59e5c 95%);
  -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; color:transparent; }
.hub-hero h1{ font-size:clamp(38px,5.4vw,64px); line-height:1.02; letter-spacing:-0.035em; margin:16px 0 0; }
.hub-hero .lead{ margin:20px auto 0; max-width:600px; font-size:19px; color:var(--ink-3); line-height:1.55; }
.hub-hero__metrics{ display:flex; justify-content:center; gap:34px; margin-top:34px; flex-wrap:wrap; }
.hub-metric b{ display:block; font-size:26px; font-weight:800; color:var(--ink-1); letter-spacing:-.02em; }
.hub-metric span{ font-size:13px; color:var(--ink-3); }

.toolset{ margin-top:clamp(48px,7vw,80px); }
.toolset__head{ margin-bottom:24px; }
.toolset__title{ font-size:23px; font-weight:800; letter-spacing:-0.02em; }
.toolset__title span{ color:var(--ink-3); font-weight:600; font-size:16px; margin-left:8px; }
.toolset__desc{ font-size:14.5px; color:var(--ink-3); max-width:620px; margin-top:9px; line-height:1.55; }

.toolgrid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
@media (max-width:900px){ .toolgrid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ .toolgrid{ grid-template-columns:1fr; } }
.toolcard{ position:relative; display:flex; flex-direction:column; padding:24px; border-radius:var(--r-xl);
  background:var(--surface); box-shadow:0 0 0 1px var(--hairline); transition:.2s var(--ease); overflow:hidden; }
.toolcard:hover{ box-shadow:0 0 0 1px var(--hairline-strong), var(--shadow-lg); transform:translateY(-4px); }
.toolcard__ic{ width:48px; height:48px; border-radius:13px; display:grid; place-items:center; flex:none;
  background:var(--primary-soft); color:var(--primary); }
.toolcard__ic svg{ width:24px; height:24px; }
.toolcard__name{ font-size:17px; font-weight:750; letter-spacing:-0.01em; margin-top:18px; color:var(--ink-1); }
.toolcard__desc{ font-size:14px; color:var(--ink-3); margin-top:8px; line-height:1.55; flex:1; }
.toolcard__go{ display:inline-flex; align-items:center; gap:7px; margin-top:18px; font-size:14px; font-weight:700; color:var(--primary); }
.toolcard__go svg{ width:16px; height:16px; transition:transform .18s var(--ease); }
.toolcard:hover .toolcard__go svg{ transform:translateX(4px); }
.toolcard__tag{ position:absolute; top:18px; right:18px; font-size:10.5px; font-weight:800; letter-spacing:.06em;
  text-transform:uppercase; padding:4px 9px; border-radius:999px; background:var(--primary-soft); color:var(--primary);
  box-shadow:inset 0 0 0 1px var(--primary-200); }
.toolcard--flagship{ box-shadow:0 0 0 1.5px var(--primary); }
.toolcard--flagship .toolcard__ic{ background:var(--primary); color:#fff; }

/* active nav state for Free Tools link */
.nav__mini-item--on{ color:var(--primary); font-weight:700; }
