/* ============================================================
   TOOLS WEBSITE — SHARED DESIGN SYSTEM
   Apple-style minimal · Inter · Accent #FF5100
   Paste ONCE: WordPress Customizer → Additional CSS
   (or via the WPCode plugin as a site-wide snippet)
   ============================================================ */
/* Inter is loaded by the UA Tools Blank theme (functions.php).
   Without the theme, add the Google Fonts <link> tags for
   Inter before this stylesheet. */

:root {
  --accent: #FF5100;
  --accent-hover: #E04800;
  --accent-soft: #FFF1E8;
  --black: #0B0B0C;
  --ink: #1D1D1F;
  --gray: #6E6E73;
  --bg: #FFFFFF;
  --bg-soft: #F5F5F7;
  --border: #E8E8EC;
  --radius: 16px;
  --radius-sm: 12px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
}

/* Base — applied inside tool content wrappers only,
   so it never fights your WordPress theme */
.ux-wrap {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
.ux-wrap *, .ux-wrap *::before, .ux-wrap *::after { box-sizing: border-box; }
.ux-wrap h1, .ux-wrap h2, .ux-wrap h3 { color: var(--black); letter-spacing: -0.02em; margin: 0; }
.ux-wrap p { margin: 0; color: var(--gray); }
.ux-container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.ux-narrow { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* Eyebrow label */
.ux-eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}

/* Buttons */
.ux-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 15px;
  padding: 13px 28px; border-radius: 999px; border: none; cursor: pointer;
  text-decoration: none; transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.ux-btn-primary { background: var(--accent); color: #fff; }
.ux-btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(255,81,0,.28); }
.ux-btn-dark { background: var(--black); color: #fff; }
.ux-btn-dark:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.ux-btn:active { transform: translateY(0); }

/* Header */
.ux-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.ux-header-inner { max-width: 1120px; margin: 0 auto; padding: 0 24px; height: 64px;
  display: flex; align-items: center; justify-content: space-between; }
.ux-logo { font-weight: 800; font-size: 19px; color: var(--black); text-decoration: none; letter-spacing: -0.02em; }
.ux-logo span { color: var(--accent); }
.ux-nav { display: flex; gap: 28px; align-items: center; }
.ux-nav a { color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500; opacity: .75; }
.ux-nav a:hover { opacity: 1; color: var(--accent); }
.ux-header .ux-btn { padding: 10px 22px; font-size: 14px; }

/* Hero */
.ux-hero { text-align: center; padding: 88px 24px 64px; }
.ux-hero h1 { font-size: clamp(38px, 5.4vw, 60px); font-weight: 800; line-height: 1.06; margin-bottom: 18px; }
.ux-hero h1 .accent { color: var(--accent); }
.ux-hero p { font-size: 18px; max-width: 560px; margin: 0 auto 32px; }

/* Search / input row */
.ux-input-row { display: flex; gap: 10px; max-width: 520px; margin: 0 auto; }
.ux-input {
  flex: 1; font-family: var(--font); font-size: 16px; color: var(--ink); /* 16px stops iOS auto-zoom on focus */
  padding: 14px 20px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg-soft); outline: none; transition: border .15s, box-shadow .15s, background .15s;
  min-width: 0;
}
.ux-input:focus { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 4px rgba(255,81,0,.12); }
.ux-input::placeholder { color: #A1A1A6; }

/* Search field with magnifier icon */
.ux-search-wrap { position: relative; flex: 1; display: flex; min-width: 0; }
.ux-search-wrap .ux-input { width: 100%; padding-left: 46px; }
.ux-search-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: #A1A1A6; pointer-events: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.ux-search-icon svg { width: 100%; height: 100%; display: block; }

/* Tool grid */
.ux-section { padding: 40px 0 88px; }

/* Popular tools — liquid glass band, easy to spot */
.ux-popular {
  position: relative; overflow: hidden;
  border-radius: 32px; padding: 64px 48px;
  background:
    radial-gradient(520px 260px at 10% 12%, rgba(255,81,0,.16), transparent 65%),
    radial-gradient(620px 300px at 90% 88%, rgba(255,81,0,.13), transparent 65%),
    radial-gradient(480px 240px at 55% 50%, rgba(11,11,12,.05), transparent 65%),
    linear-gradient(180deg, #FAFAFC, #F0F0F3);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 24px 70px rgba(20,20,35,.10);
}
.ux-popular::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.55), transparent 42%);
}
.ux-popular > * { position: relative; }
.ux-section-title { text-align: center; font-size: 32px; font-weight: 800; margin-bottom: 10px; }
.ux-section-sub { text-align: center; margin-bottom: 40px; font-size: 16px; }
.ux-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* Liquid glass cards */
.ux-card {
  position: relative; display: block;
  background: linear-gradient(135deg, rgba(255,255,255,.78), rgba(255,255,255,.34));
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 20px; padding: 28px 24px;
  text-decoration: none; color: inherit;
  box-shadow: 0 12px 40px rgba(20,20,35,.10),
    inset 0 1px 0 rgba(255,255,255,.9),
    inset 0 -1px 0 rgba(255,255,255,.25);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ux-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,81,0,.4);
  box-shadow: 0 22px 55px rgba(255,81,0,.20),
    inset 0 1px 0 rgba(255,255,255,.95);
}
.ux-card-icon {
  width: 52px; height: 52px; border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #FF7A33);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 18px;
  box-shadow: 0 8px 20px rgba(255,81,0,.35), inset 0 1px 0 rgba(255,255,255,.4);
}
.ux-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.ux-card p { font-size: 14px; }
.ux-card-more { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--accent); }

/* Tool page */
.ux-crumb { font-size: 13.5px; color: var(--gray); padding: 28px 0 0; }
.ux-crumb a { color: var(--gray); text-decoration: none; }
.ux-crumb a:hover { color: var(--accent); }
.ux-tool-hero { text-align: center; padding: 40px 24px 36px; }
.ux-tool-hero h1 { font-size: clamp(32px, 4.4vw, 46px); font-weight: 800; margin-bottom: 14px; }
.ux-tool-hero p { font-size: 17px; max-width: 560px; margin: 0 auto; }

/* The tool itself */
.ux-toolbox {
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 20px; padding: 36px 32px; margin-bottom: 56px;
}
.ux-toolbox .ux-input-row { max-width: none; }
.ux-result {
  margin-top: 20px; background: #fff; border: 1px dashed var(--border);
  border-radius: var(--radius-sm); padding: 28px; text-align: center;
  color: var(--gray); font-size: 14.5px;
}
.ux-result.ready { border-style: solid; }

/* Steps */
.ux-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 64px; }
.ux-step { text-align: center; padding: 8px; }
.ux-step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--black); color: #fff;
  font-weight: 700; font-size: 15px; display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.ux-step h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.ux-step p { font-size: 14px; }

/* FAQ — like the inspiration: 2-col, pill badge, cards invert to black */
.ux-faqband { background: #F7F7F9; padding: 88px 0; margin-bottom: 72px; }
.ux-faqgrid { max-width: 1120px; margin: 0 auto; padding: 0 24px; display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.ux-faqbadge { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 8px 17px; font-size: 13px; font-weight: 600; color: var(--black); margin-bottom: 22px; }
.ux-faqbadge .spark { color: var(--accent); font-size: 14px; }
.ux-faqleft h2 { font-size: clamp(36px, 4.8vw, 58px); font-weight: 800; line-height: 1.08; margin-bottom: 18px; }
.ux-faqleft p { color: var(--gray); font-size: 16.5px; max-width: 380px; }
.ux-faq { display: flex; flex-direction: column; gap: 14px; }
.ux-faq details { background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: background .25s ease, border-color .25s ease; }
.ux-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; font-size: 17.5px; font-weight: 600; cursor: pointer; list-style: none; color: var(--black); }
.ux-faq summary::-webkit-details-marker { display: none; }
.ux-faq summary .chev { flex: none; width: 20px; height: 20px; transition: transform .25s ease; }
.ux-faq details[open] { background: var(--black); border-color: var(--black); }
.ux-faq details[open] summary { color: #fff; }
.ux-faq details[open] summary .chev { transform: rotate(180deg); }
.ux-faq details p { padding: 0 24px 24px; margin: 0; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.72); }
@media (max-width: 860px) {
  .ux-faqgrid { grid-template-columns: 1fr; gap: 36px; }
  .ux-faqband { padding: 64px 0; }
}

/* Black CTA band — lower third, like the inspiration site */
.ux-cta {
  position: relative; overflow: hidden;
  background:
    radial-gradient(500px 240px at 50% -20%, rgba(255,81,0,.28), transparent 65%),
    radial-gradient(400px 200px at 85% 110%, rgba(255,81,0,.14), transparent 60%),
    var(--black);
  border-radius: 28px; text-align: center;
  padding: 76px 32px; margin: 0 0 88px;
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
}
.ux-cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.09), transparent 40%);
}
.ux-cta > * { position: relative; }
.ux-cta .ux-eyebrow { color: var(--accent); }
.ux-cta h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 14px; }
.ux-cta p { color: rgba(255,255,255,.62); font-size: 17px; max-width: 520px; margin: 0 auto 32px; }

/* Footer — black, white text */
.ux-footer { background: var(--black); }
.ux-footer-inner { max-width: 1120px; margin: 0 auto; padding: 56px 24px 40px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.ux-footer .ux-logo { color: #fff; }
.ux-footer p.small { font-size: 13.5px; margin-top: 12px; max-width: 280px; color: rgba(255,255,255,.55); }
.ux-footer-links { display: flex; gap: 56px; }
.ux-footer-links h4 { font-size: 12.5px; font-weight: 700; color: #fff; margin: 0 0 16px; text-transform: uppercase; letter-spacing: .08em; }
.ux-footer-links a { display: block; color: rgba(255,255,255,.55); text-decoration: none; font-size: 14px; margin-bottom: 12px; }
.ux-footer-links a:hover { color: var(--accent); }
.ux-copy { text-align: center; font-size: 13px; color: rgba(255,255,255,.4); padding: 22px; border-top: 1px solid rgba(255,255,255,.1); }

/* Ad slot placeholder (for AdSense units) */
.ux-adslot {
  border: 1px dashed var(--border); border-radius: var(--radius-sm);
  color: #A1A1A6; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase;
  text-align: center; padding: 26px; margin: 0 auto 48px; max-width: 728px;
}

/* Responsive */
@media (max-width: 860px) {
  .ux-grid, .ux-steps { grid-template-columns: 1fr 1fr; }
  .ux-nav { display: none; }
}
@media (max-width: 600px) {
  .ux-grid, .ux-steps { grid-template-columns: 1fr; }
  .ux-input-row { flex-direction: column; }
  .ux-input-row .ux-btn { width: 100%; }
  .ux-toolbox { padding: 26px 20px; }
  .ux-hero { padding: 60px 20px 48px; }
  .ux-popular { padding: 44px 22px; border-radius: 24px; }
  .ux-cta { padding: 56px 24px; border-radius: 22px; margin-bottom: 64px; }
  .ux-header-inner { height: 58px; }
  .ux-header .ux-btn { padding: 9px 18px; font-size: 13px; }
  .ux-search-wrap { width: 100%; }
}
