/* Shared visual system. Page-specific tool controls remain in their own files. */
:root { color-scheme: light; }
[data-theme="dark"] { color-scheme: dark; }

.skip-link { position: fixed; top: .75rem; left: .75rem; z-index: 100; padding: .7rem 1rem; border-radius: .7rem; background: var(--primary); color: #fff; font-weight: 700; transform: translateY(-180%); transition: transform .15s ease; }
.skip-link:focus { transform: translateY(0); }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .62; }
input, select, textarea, img, svg, video, canvas { max-width: 100%; }

/* Premium navigation, cards, controls, and page rhythm. */
.topbar { box-shadow: 0 1px 0 color-mix(in srgb, var(--text) 8%, transparent), 0 10px 30px color-mix(in srgb, var(--bg) 74%, transparent); }
.topbar-inner { gap: clamp(.5rem, 1.4vw, 1.25rem); }
.brand { transition: transform .2s ease; }
.brand:hover { transform: translateY(-1px); }
.brand strong { letter-spacing: -.02em; }
.main-nav { gap: .35rem; padding: .35rem; border: 1px solid color-mix(in srgb, var(--text) 9%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--surface) 78%, transparent); }
.main-nav .nav-link { padding: .45rem .7rem; border-radius: 999px; transition: color .18s ease, background .18s ease; }
.main-nav .nav-link:hover, .main-nav .nav-link.current, .nav-item:focus-within > .nav-link { color: var(--primary); background: var(--primary-soft); }
.nav-item:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown { border-radius: 1rem; padding: .45rem; box-shadow: 0 20px 48px color-mix(in srgb, var(--text) 17%, transparent); }
.nav-dropdown a { transition: background .16s ease, color .16s ease, transform .16s ease; }
.nav-dropdown a:hover, .nav-dropdown a:focus-visible { transform: translateX(2px); }
.theme-btn, .mobile-nav-toggle { transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.theme-btn:hover, .mobile-nav-toggle:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); background: var(--primary-soft); }
.search-input { transition: box-shadow .18s ease, border-color .18s ease, background .18s ease; }
.search-input:focus { border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 15%, transparent); outline: 0; }
.mobile-nav-panel.open { box-shadow: 0 18px 50px color-mix(in srgb, var(--text) 14%, transparent); }

.page-head { padding-top: clamp(2.5rem, 5vw, 4.75rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.page-head h1, .hero h1 { letter-spacing: -.045em; line-height: 1.08; }
.eyebrow { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 18%, transparent); }
.tool-card, .feature-card, .step-card, .faq-item, .tool-card-link { box-shadow: 0 14px 36px color-mix(in srgb, var(--text) 7%, transparent); }
.tool-card, .feature-card, .step-card, .faq-item { border-color: color-mix(in srgb, var(--text) 9%, transparent); }
.tool-card-link { overflow: hidden; position: relative; min-height: 100%; border-radius: 1.25rem; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.tool-card-link::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 8%, transparent), transparent 45%); opacity: 0; transition: opacity .22s ease; }
.tool-card-link:hover, .tool-card-link:focus-visible { transform: translateY(-5px); border-color: color-mix(in srgb, var(--primary) 55%, var(--line)); box-shadow: 0 20px 44px color-mix(in srgb, var(--text) 13%, transparent); }
.tool-card-link:hover::after, .tool-card-link:focus-visible::after { opacity: 1; }
.tool-icon { padding: .55rem; border-radius: .85rem; background: var(--primary-soft); }
.tool-arrow { margin-top: auto; }
.btn { border-radius: .8rem; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.btn-primary { box-shadow: 0 10px 20px color-mix(in srgb, var(--primary) 25%, transparent); }
.btn:hover { transform: translateY(-2px); filter: brightness(1.03); }
.btn:active { transform: translateY(0); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 75%, #fff); outline-offset: 3px; }

/* Homepage-specific conversion sections. */
.hero { padding-top: clamp(3.75rem, 8vw, 7.5rem); padding-bottom: clamp(2.5rem, 6vw, 5.5rem); position: relative; }
.hero::before { content: ''; position: absolute; width: min(48vw, 620px); height: min(48vw, 620px); right: 4%; top: 0; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 16%, transparent), transparent 68%); pointer-events: none; filter: blur(8px); }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: clamp(2rem, 6vw, 5.5rem); align-items: center; position: relative; }
.hero-inner { max-width: 680px; }
.hero h1 { max-width: 12ch; font-size: clamp(2.65rem, 5vw, 4.75rem); }
.hero p { font-size: clamp(1rem, .94rem + .35vw, 1.18rem); }
.hero-proof { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.25rem; color: var(--muted); font-size: var(--sm); }
.hero-proof span { display: inline-flex; align-items: center; gap: .4rem; }
.hero-proof span::before { content: '✓'; display: grid; place-items: center; width: 1.15rem; height: 1.15rem; color: #fff; background: var(--success); border-radius: 50%; font-size: .72rem; font-weight: 900; }
.hero-panel { background: color-mix(in srgb, var(--surface) 90%, transparent); border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); border-radius: 1.6rem; padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 24px 60px color-mix(in srgb, var(--text) 14%, transparent); backdrop-filter: blur(14px); }
.hero-panel-label { color: var(--muted); font-size: var(--xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hero-panel h2 { margin: .4rem 0 1.35rem; font-size: clamp(1.35rem, 2vw, 1.75rem); line-height: 1.2; letter-spacing: -.03em; }
.hero-stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.hero-stat { padding: 1rem; border-radius: 1rem; background: var(--surface-2); border: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }
.hero-stat strong { display: block; font-size: 1.1rem; color: var(--primary); }
.hero-stat span { color: var(--muted); font-size: var(--xs); }
.trust-strip { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); border-radius: 1.25rem; background: color-mix(in srgb, var(--text) 10%, transparent); box-shadow: 0 12px 32px color-mix(in srgb, var(--text) 6%, transparent); }
.trust-item { min-height: 88px; padding: 1rem 1.2rem; background: var(--surface); display: flex; align-items: center; gap: .75rem; }
.trust-item strong { display: block; font-size: var(--sm); }
.trust-item span { display: block; color: var(--muted); font-size: var(--xs); }
.trust-mark { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: .7rem; background: var(--primary-soft); color: var(--primary); font-weight: 900; }
.home-section { padding-top: clamp(2.75rem, 5vw, 4.5rem); padding-bottom: clamp(2.75rem, 5vw, 4.5rem); }
.section-head h2 { letter-spacing: -.03em; }

.site-footer { margin-top: clamp(3rem, 8vw, 6rem); border-top: 1px solid color-mix(in srgb, var(--text) 10%, transparent); background: var(--surface); }
.footer-inner { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: 1.5rem; }
.footer-grid { display: grid; grid-template-columns: minmax(220px, 1.8fr) repeat(2, minmax(140px, 1fr)); gap: 2rem; }
.footer-brand { max-width: 34ch; }
.footer-brand strong { display: block; margin-bottom: .5rem; font-size: 1.05rem; }
.footer-brand p, .footer-list a, .footer-bottom { color: var(--muted); font-size: var(--sm); }
.footer-heading { margin-bottom: .7rem; font-size: var(--sm); }
.footer-list { display: grid; gap: .45rem; list-style: none; }
.footer-list a { transition: color .18s ease; }
.footer-list a:hover { color: var(--primary); }
.footer-bottom { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid color-mix(in srgb, var(--text) 9%, transparent); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .65rem; }

.legal-page { max-width: 780px; padding-top: clamp(3.5rem, 8vw, 6rem); padding-bottom: clamp(3.5rem, 8vw, 6rem); }
.legal-page h1 { letter-spacing: -.045em; line-height: 1.1; }
.legal-page h2 { margin-top: 2rem; margin-bottom: .65rem; font-size: 1.2rem; }
.legal-page p, .legal-page li { color: var(--muted); }
.legal-page ul { padding-left: 1.25rem; display: grid; gap: .45rem; }
.legal-back { display: inline-flex; margin-bottom: 1.25rem; color: var(--primary); font-size: var(--sm); font-weight: 700; }

/* Phase 2: a calmer, more deliberate product surface across every tool. */
body { text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
html { overflow-x: clip; }
body { overflow-x: hidden; }
.container { max-width: 1200px; }
.topbar { isolation: isolate; }
.topbar::after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 30%, transparent), transparent); }
.brand svg { filter: drop-shadow(0 4px 8px color-mix(in srgb, var(--primary) 20%, transparent)); }
.nav-dropdown { min-width: 236px; border: 1px solid color-mix(in srgb, var(--text) 12%, transparent); background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(16px); }
.nav-dropdown a { border-radius: .7rem; }
.nav-item > .nav-link[role="button"] { cursor: pointer; }
.mobile-nav-panel.open { border-top: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }
.breadcrumb-bar { background: color-mix(in srgb, var(--surface-2) 78%, var(--bg)); }
.page-head { max-width: 1200px; }
.page-head p { font-size: clamp(1rem, .95rem + .25vw, 1.13rem); }
.tool-card { border-radius: 1.35rem; }
.tool-card, .feature-card, .step-card, .faq-item { box-shadow: 0 10px 30px color-mix(in srgb, var(--text) 5%, transparent); }
.tool-card:hover, .feature-card:hover, .step-card:hover { border-color: color-mix(in srgb, var(--primary) 28%, var(--line)); }
.file-btn, .btn-secondary { transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.file-btn:hover, .btn-secondary:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--primary) 42%, var(--line)); background: var(--surface); }
.input, .mode-select, .mini-date-input, input:not([type="checkbox"]):not([type="radio"]), select, textarea { border-color: color-mix(in srgb, var(--text) 14%, transparent); }
.input:focus, .mode-select:focus, .mini-date-input:focus-within, input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent); }
.status-box { border-radius: 1rem; }
.section { padding-top: clamp(2.75rem, 5vw, 4.5rem); padding-bottom: clamp(2.75rem, 5vw, 4.5rem); }
.section-head { display: grid; gap: .35rem; margin-bottom: clamp(1.25rem, 2vw, 1.75rem); }
.section-head h2, .section > h2 { font-size: clamp(1.45rem, 1.15rem + 1.1vw, 2rem); letter-spacing: -.035em; }
.catalog { gap: clamp(.9rem, 1.6vw, 1.3rem); }
.tool-card-link { display: flex; flex-direction: column; padding: clamp(1.2rem, 2vw, 1.5rem); }
.tool-card-link h3 { letter-spacing: -.015em; }
.tool-card-link p { line-height: 1.55; }
.tool-arrow { padding-top: .25rem; }
.hero .cta-row { margin-top: 1.75rem; }
.home-section + .home-section { padding-top: 0; }
.home-section .section-head { max-width: 680px; }
.footer-list a:focus-visible { color: var(--primary); }

/* Production release safeguards: clear targets, stable anchors, and small-screen containment. */
.btn, .file-btn, .theme-btn, .mobile-nav-toggle, .add-more-btn { min-height: 44px; }
.btn, .file-btn { touch-action: manipulation; }
input, select, textarea { min-height: 44px; }
input[type="checkbox"], input[type="radio"] { min-height: 0; }
h1, h2, h3, [id] { scroll-margin-top: 6rem; }
.topbar, .mobile-nav-panel, .nav-dropdown, .search-results, .tool-card, .result-card, .table-wrap { max-width: 100%; }
.table-wrap { overscroll-behavior-inline: contain; }
@media (pointer: coarse) { .main-nav .nav-link, .nav-dropdown a, .mobile-nav-panel a { min-height: 44px; display: flex; align-items: center; } }

/* Phase 3: seller guidance, discovery, and confidence. */
.featured-tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.featured-tool { display: grid; grid-template-columns: auto 1fr; gap: .85rem 1rem; padding: 1.35rem; border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); border-radius: 1.2rem; background: var(--surface); box-shadow: 0 12px 28px color-mix(in srgb, var(--text) 5%, transparent); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.featured-tool:hover, .featured-tool:focus-visible { transform: translateY(-3px); border-color: color-mix(in srgb, var(--primary) 48%, var(--line)); box-shadow: 0 18px 34px color-mix(in srgb, var(--text) 10%, transparent); }
.featured-number { color: var(--primary); font-size: var(--xs); font-weight: 900; letter-spacing: .08em; }
.featured-tool strong, .featured-tool b { display: block; }
.featured-tool span:not(.featured-number) { color: var(--muted); font-size: var(--sm); line-height: 1.45; }
.featured-tool b { grid-column: 2; color: var(--primary); font-size: var(--sm); }
.why-section { border-radius: 1.75rem; background: linear-gradient(135deg, color-mix(in srgb, var(--primary-soft) 62%, var(--surface)), var(--surface)); padding-inline: clamp(1.25rem, 4vw, 3rem); }
.benefit-grid, .updates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.benefit-card { padding: 1.25rem; border-radius: 1rem; background: color-mix(in srgb, var(--surface) 78%, transparent); border: 1px solid color-mix(in srgb, var(--text) 8%, transparent); }
.benefit-card > span, .updates-grid article > span { color: var(--primary); font-size: var(--xs); font-weight: 900; letter-spacing: .08em; }
.benefit-card h3 { margin: .5rem 0 .35rem; font-size: 1.05rem; }
.benefit-card p, .updates-grid p { color: var(--muted); font-size: var(--sm); }
.quick-links { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); border-radius: 1.15rem; background: var(--surface); }
.quick-links a { display: flex; justify-content: space-between; gap: .75rem; padding: 1rem 1.1rem; border: 1px solid color-mix(in srgb, var(--text) 8%, transparent); font-size: var(--sm); font-weight: 700; transition: color .16s ease, background .16s ease; }
.quick-links a:hover, .quick-links a:focus-visible { color: var(--primary); background: var(--primary-soft); }
.quick-links span { font-size: 1.1rem; }
.updates-grid { grid-template-columns: repeat(2, 1fr); }
.updates-grid article { padding: 1.5rem; border-radius: 1.2rem; border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); background: var(--surface); }
.updates-grid h3 { margin: .5rem 0; letter-spacing: -.02em; }
.updates-grid a { display: inline-flex; margin-top: 1rem; color: var(--primary); font-size: var(--sm); font-weight: 800; }
.home-faq { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.home-faq details { padding: 1rem 1.1rem; border: 1px solid color-mix(in srgb, var(--text) 10%, transparent); border-radius: .9rem; background: var(--surface); }
.home-faq summary { cursor: pointer; font-size: var(--sm); font-weight: 800; }
.home-faq p { margin-top: .65rem; color: var(--muted); font-size: var(--sm); }
.tool-guide { margin: 0 auto clamp(1.25rem, 3vw, 2rem); padding: 1rem 1.15rem; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--line)); border-radius: 1rem; background: color-mix(in srgb, var(--primary) 5%, var(--surface)); }
.tool-guide-kicker { color: var(--primary); font-size: var(--xs); font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.tool-guide strong { display: block; font-size: var(--sm); }
.tool-guide p { color: var(--muted); font-size: var(--xs); }
.tool-guide a { color: var(--primary); font-size: var(--sm); font-weight: 800; white-space: nowrap; }
.status-box[role="status"], .count-badge[role="status"] { min-height: 3rem; }

@media (max-width: 900px) { .topbar-inner { gap: .5rem; } .page-head { padding-top: 3rem; } .featured-tools, .benefit-grid { grid-template-columns: 1fr; } .quick-links { grid-template-columns: repeat(2, 1fr); } .tool-guide { grid-template-columns: auto 1fr; } .tool-guide a { grid-column: 2; } }
@media (max-width: 600px) { .section { padding-top: 2.5rem; padding-bottom: 2.5rem; } .btn { width: 100%; } .cta-row { width: 100%; } .mobile-nav-panel.open { top: 64px; } .quick-links, .updates-grid, .home-faq { grid-template-columns: 1fr; } .tool-guide { align-items: start; gap: .55rem .75rem; } .tool-guide a { margin-top: .25rem; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; } }
@media (max-width: 900px) { .hero-layout { grid-template-columns: 1fr; } .hero-panel { max-width: 620px; } .trust-strip { grid-template-columns: repeat(2, 1fr); } .trust-item:first-child { grid-column: 1 / -1; } }
@media (max-width: 600px) { .topbar-inner { height: 64px; } .hero h1 { font-size: clamp(2.35rem, 12vw, 3.35rem); } .hero-panel { border-radius: 1.25rem; } .hero-stat-grid { gap: .55rem; } .trust-strip { grid-template-columns: 1fr; } .trust-item:first-child { grid-column: auto; } .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem 1rem; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 420px) { .topbar-inner { height: auto; min-height: 64px; gap: .35rem; } .brand span { display: none; } .brand svg { width: 32px; height: 32px; } .theme-btn, .mobile-nav-toggle { flex: 0 0 38px; width: 38px; height: 38px; } }
