/* ===========================
   KeshJob — Style Sheet v2.0
   =========================== */

:root{
  --bg:#f6f7f9;
  --surface:#fff;
  --surface-soft:#f1f4f8;
  --text:#171a1f;
  --muted:#667085;
  --border:#e4e7ec;
  --primary:#2563eb;
  --primary-hover:#1d4ed8;
  --primary-soft:#eff6ff;
  --success:#087443;
  --danger:#b42318;
  --shadow-sm:0 2px 8px rgba(16,24,40,.06);
  --shadow:0 8px 24px rgba(16,24,40,.08);
  --shadow-lg:0 20px 30px rgba(16,24,40,.12);
  --radius:16px;
}

/* Reset */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  line-height:1.6;
}
img{max-width:100%;display:block}
a{color:inherit}
.container{width:min(1120px,calc(100% - 40px));margin:0 auto}
.narrow{width:min(820px,calc(100% - 40px));margin:0 auto}

/* ===========================
   Skip to Content (a11y)
   =========================== */
.skip-link{
  position:absolute;
  top:-100%;
  left:16px;
  z-index:9999;
  padding:10px 18px;
  background:var(--primary);
  color:#fff;
  font-weight:700;
  font-size:14px;
  border-radius:0 0 8px 8px;
  text-decoration:none;
  transition:top .2s ease;
}
.skip-link:focus{
  top:0;
}

/* ===========================
   Header & Navigation
   =========================== */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(255,255,255,.97);
  border-bottom:1px solid var(--border);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.header .nav{
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}
.header .brand{
  display:inline-flex;
  align-items:center;
  flex:0 0 auto;
  text-decoration:none;
  line-height:0;
}
.header .logo-img{
  display:block;
  height:42px;
  width:auto;
  max-height:42px;
  object-fit:contain;
}

/* Primary Navigation */
.main-navigation{
  display:flex;
  align-items:center;
  gap:32px;
  margin:0;
  padding:0;
  color:#475467;
  font-size:15px;
  font-weight:600;
}
.main-navigation a{
  display:block;
  padding:8px 0;
  text-decoration:none;
  white-space:nowrap;
  transition:color .15s ease;
  position:relative;
}
.main-navigation a:hover{color:var(--primary)}

/* Dropdown Submenu */
.nav-dropdown{
  position:relative;
}
.nav-dropdown-btn{
  background:none;
  border:none;
  padding:8px 0;
  font:inherit;
  color:inherit;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:6px;
  transition:color .15s ease;
}
.nav-dropdown-btn:hover{color:var(--primary)}
.nav-dropdown-btn::after{
  content:'';
  display:inline-block;
  width:0;
  height:0;
  border-left:4px solid transparent;
  border-right:4px solid transparent;
  border-top:5px solid currentColor;
  opacity:0.7;
  margin-top:2px;
  transition:transform .2s ease;
}
.nav-dropdown:hover .nav-dropdown-btn::after{
  transform:rotate(180deg);
}
.dropdown-menu{
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%) translateY(10px);
  background:#fff;
  border:1px solid var(--border);
  border-radius:12px;
  box-shadow:var(--shadow-lg);
  min-width:220px;
  padding:12px;
  opacity:0;
  visibility:hidden;
  transition:all .2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index:60;
  display:flex;
  flex-direction:column;
  gap:4px;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu{
  opacity:1;
  visibility:visible;
  transform:translateX(-50%) translateY(0);
}
.dropdown-menu a{
  padding:10px 14px;
  border-radius:8px;
  color:var(--text);
  display:flex;
  align-items:center;
  transition:background .15s ease, color .15s ease;
}
.dropdown-menu a:hover{
  background:var(--primary-soft);
  color:var(--primary);
}

/* Hamburger Toggle */
.nav-toggle{
  display:none;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:5px;
  width:44px;
  height:44px;
  padding:0;
  border:none;
  background:none;
  cursor:pointer;
  z-index:60;
}
.hamburger-line{
  display:block;
  width:24px;
  height:2.5px;
  background:var(--text);
  border-radius:3px;
  transition:transform .25s ease, opacity .2s ease;
}
.nav-toggle.is-active .hamburger-line:nth-child(1){
  transform:translateY(7.5px) rotate(45deg);
}
.nav-toggle.is-active .hamburger-line:nth-child(2){
  opacity:0;
}
.nav-toggle.is-active .hamburger-line:nth-child(3){
  transform:translateY(-7.5px) rotate(-45deg);
}

/* ===========================
   Breadcrumbs
   =========================== */
.breadcrumbs{
  background:var(--surface);
  border-bottom:1px solid var(--border);
  padding:12px 0;
  font-size:13px;
  color:var(--muted);
}
.breadcrumbs ol{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
}
.breadcrumbs li{display:flex;align-items:center;gap:6px}
.breadcrumbs li:not(:last-child)::after{
  content:'/';
  color:#98a2b3;
  font-size:14px;
}
.breadcrumbs a{
  color:var(--muted);
  text-decoration:none;
  transition:color .15s ease;
}
.breadcrumbs a:hover{color:var(--primary);text-decoration:underline}
.breadcrumbs [aria-current="page"]{color:var(--text);font-weight:600}

/* ===========================
   Typography
   =========================== */
h1,h2,h3{color:var(--text);line-height:1.2}
h1{
  font-size:clamp(38px,5vw,58px);
  letter-spacing:-.045em;
  margin:14px 0 18px;
  font-weight:800;
}
h2{
  font-size:clamp(28px,3.2vw,38px);
  letter-spacing:-.03em;
  margin:0 0 12px;
  font-weight:700;
}
h3{font-size:20px;font-weight:700}
p{margin-top:0}

/* ===========================
   Hero
   =========================== */
.hero{
  padding:90px 0 80px;
  background:var(--surface);
  border-bottom:1px solid var(--border);
  position:relative;
  overflow:hidden;
}
.hero::before{
  content:'';
  position:absolute;
  top:-50%; left:-10%; width:120%; height:120%;
  background:radial-gradient(circle at center, rgba(37,99,235,0.03) 0%, transparent 60%);
  z-index:0;
  pointer-events:none;
}
.hero-inner{text-align:center;position:relative;z-index:1}
.badge,.eyebrow{
  display:inline-flex;
  align-items:center;
  width:max-content;
  color:var(--primary);
  background:var(--primary-soft);
  border:1px solid #dbeafe;
  border-radius:999px;
  padding:6px 14px;
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.hero p{
  max-width:700px;
  margin:0 auto;
  color:var(--muted);
  font-size:19px;
  line-height:1.6;
}
.hero-actions{
  display:flex;
  justify-content:center;
  gap:16px;
  flex-wrap:wrap;
  margin-top:34px;
}

/* ===========================
   Buttons (Highly Styled)
   =========================== */
.primary-btn, .download-btn, .hero-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:0 24px;
  border:none;
  border-radius:12px;
  background:var(--primary);
  color:#fff;
  font:inherit;
  font-weight:700;
  font-size:15px;
  text-decoration:none;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(37,99,235,.25);
  transition:all .2s cubic-bezier(0.16, 1, 0.3, 1);
}
.primary-btn:hover, .download-btn:hover, .hero-btn:hover{
  background:var(--primary-hover);
  box-shadow:0 6px 18px rgba(37,99,235,.35);
  transform:translateY(-2px);
  color:#fff;
}
.primary-btn:active, .download-btn:active, .hero-btn:active{
  transform:translateY(0);
}
.primary-btn:disabled{
  background:#d0d5dd;
  box-shadow:none;
  color:#fff;
  cursor:not-allowed;
  transform:none;
}
.secondary-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:50px;
  padding:0 24px;
  border:1.5px solid var(--border);
  border-radius:12px;
  background:#fff;
  color:var(--text);
  font-weight:700;
  font-size:15px;
  text-decoration:none;
  box-shadow:var(--shadow-sm);
  transition:all .2s ease;
}
.secondary-btn:hover{
  background:var(--surface-soft);
  border-color:#d0d5dd;
  box-shadow:0 4px 12px rgba(16,24,40,.06);
  transform:translateY(-2px);
}
.text-btn{
  border:0;
  padding:6px 12px;
  background:var(--primary-soft);
  color:var(--primary);
  border-radius:8px;
  font:inherit;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  transition:all .2s ease;
}
.text-btn:hover{
  background:#dbeafe;
  color:var(--primary-hover);
}

/* ===========================
   Sections
   =========================== */
.content-section,.info-section,.faq-section{
  padding:80px 0;
  background:var(--surface);
}
.content-section.alt,.faq-section{
  background:var(--bg);
  border-top:1px solid var(--border);
}
.section-heading{margin-bottom:36px}
.section-heading h2{margin:12px 0 8px}
.section-heading p{color:var(--muted);max-width:700px;font-size:17px}

/* ===========================
   Cards
   =========================== */
.feature-card{
  display:grid;
  grid-template-columns:minmax(0,1fr) 260px;
  gap:40px;
  padding:40px;
  border:1px solid var(--border);
  border-radius:var(--radius);
  background:#fff;
  box-shadow:var(--shadow);
  transition:box-shadow .3s ease;
}
.feature-card:hover{
  box-shadow:var(--shadow-lg);
}
.feature-card h3{margin:0 0 10px;font-size:22px}
.feature-card p{color:var(--muted);font-size:16px;line-height:1.7}
.text-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  margin-top:12px;
  color:var(--primary);
  font-weight:700;
  text-decoration:none;
  font-size:15px;
}
.text-link:hover{text-decoration:underline}
.feature-stats{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding-left:32px;
  border-left:1px solid var(--border);
}
.feature-stats strong{font-size:32px;line-height:1.1;margin-top:5px;font-weight:800;color:var(--primary)}
.feature-stats span{color:var(--muted);font-size:14px;margin-bottom:16px;font-weight:500}
.cards.three{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:20px;
}
.cards article,.article-list article{
  padding:32px 28px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  transition:box-shadow .2s ease,transform .2s ease;
}
.cards article:hover,.article-list article:hover{
  box-shadow:var(--shadow);
  transform:translateY(-3px);
}
.cards article h3{margin:0 0 10px;font-size:19px}
.cards article p{color:var(--muted);margin-bottom:0;font-size:15px;line-height:1.6}
.article-list{display:grid;gap:20px}
.article-list h2{margin:10px 0;font-size:24px}
.article-list h2 a{text-decoration:none;transition:color .15s ease}
.article-list h2 a:hover{color:var(--primary)}

/* ===========================
   Steps (How-To Section)
   =========================== */
.steps{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:24px;
}
.steps article{
  position:relative;
  padding:32px 24px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow-sm);
  transition:box-shadow .2s ease,transform .2s ease;
}
.steps article:hover{
  box-shadow:var(--shadow);
  transform:translateY(-4px);
}
.steps article span{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  margin-bottom:18px;
  border-radius:12px;
  background:var(--primary-soft);
  color:var(--primary);
  font-size:16px;
  font-weight:800;
}
.steps article h3{
  margin:0 0 8px;
  font-size:18px;
}
.steps article p{
  color:var(--muted);
  font-size:15px;
  margin:0;
  line-height:1.6;
}

/* ===========================
   TTS Tool & Other Tools
   =========================== */
.tool-wrap{padding:40px 0 80px;background:var(--bg)}
.app-card{
  width:100%;
  max-width:960px;
  margin:0 auto;
  padding:36px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:var(--shadow);
}
.app-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  margin-bottom:30px;
}
.app-head h2{margin:0 0 6px;font-size:28px}
.app-head p{margin:0;color:var(--muted);font-size:15px}

/* Stats Grid for Text Tools */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-box {
  background: var(--surface-soft);
  padding: 16px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stat-box span {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 4px;
}
.stat-box label {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  font-weight: 600;
}

/* Tool Checkboxes */
.tool-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 20px 0;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.tool-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 15px;
  margin: 0;
  cursor: pointer;
}
.tool-options input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Tool Buttons Grid */
.tool-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}
.tool-buttons .secondary-btn {
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  flex: 1 1 auto;
}

/* Analyzer Highlights */
mark.highlight-filler { background: #fef08a; color: #854d0e; padding: 2px 4px; border-radius: 4px; }
mark.highlight-passive { background: #fed7aa; color: #9a3412; padding: 2px 4px; border-radius: 4px; }
mark.highlight-long { background: #fecaca; color: #991b1b; padding: 2px 4px; border-radius: 4px; }
.analyzer-report { margin-top: 24px; padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: 16px; }
.analyzer-report h3 { margin-top: 0; margin-bottom: 16px; font-size: 20px; }
.analyzer-report ul { padding-left: 20px; margin-bottom: 0; }
.analyzer-report li { margin-bottom: 8px; color: #344054; }
.status{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:6px 14px;
  border-radius:999px;
  background:var(--surface-soft);
  color:#475467;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
}
.status.loading{background:#fff7ed;color:#b54708}
.status.success{background:#ecfdf3;color:var(--success)}
.status.error{background:#fef3f2;color:var(--danger)}
.label-row,.counter,.control-label,.range-hints{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
label{display:block;margin-bottom:10px;font-size:15px;font-weight:700}
textarea,select{
  width:100%;
  border:1px solid #d0d5dd;
  background:#fff;
  color:var(--text);
  font:inherit;
  outline:none;
  transition:border-color .2s ease,box-shadow .2s ease;
}
textarea{
  min-height:260px;
  resize:vertical;
  border-radius:12px;
  padding:16px;
  font-size:16px;
  line-height:1.6;
  box-shadow:inset 0 2px 4px rgba(16,24,40,.02);
}
select{height:50px;border-radius:12px;padding:0 16px;font-size:15px}
textarea:focus,select:focus,input:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 4px rgba(37,99,235,.15);
}
.counter{margin-top:10px;color:var(--muted);font-size:13px;font-weight:500}
.controls{
  display:grid;
  grid-template-columns:1.5fr 1fr 1fr;
  gap:24px;
  margin:32px 0;
}
.voice-meta{min-height:20px;margin-top:8px;color:var(--muted);font-size:13px}
.control-label label{margin:0}
.control-label span{color:var(--primary);font-size:14px;font-weight:700}
input[type=range]{width:100%;height:36px;accent-color:var(--primary);cursor:pointer}
.range-hints{color:var(--muted);font-size:12px;margin-top:4px}
.controls + .primary-btn{width:100%;font-size:18px;min-height:56px}
.result{
  margin-top:24px;
  padding:24px;
  border:1px solid #dbeafe;
  background:#f8fbff;
  border-radius:16px;
}
.result-head{margin-bottom:16px}
.result-head strong{display:block;font-size:18px;color:var(--primary-hover)}
.result-head span{color:var(--muted);font-size:14px}
audio{width:100%;margin-bottom:16px;border-radius:999px}
.download-btn{width:auto;min-height:46px;padding:0 20px}
.hidden{display:none!important}
.privacy-note{text-align:center;margin-top:18px;color:var(--muted);font-size:12px}

/* ===========================
   Page Hero (About, Contact, Legal)
   =========================== */
.page-hero{
  padding:80px 0 60px;
  background:var(--surface);
  border-bottom:1px solid var(--border);
}
.page-hero h1{font-size:clamp(36px,5vw,52px);margin:16px 0 12px;font-weight:800}
.page-hero p{max-width:720px;color:var(--muted);font-size:18px;line-height:1.6}

/* ===========================
   Article / Prose
   =========================== */
.article{line-height:1.8}
.article h1{line-height:1.15;margin:10px 0 32px}
.article h2{margin-top:44px;line-height:1.25;font-size:28px}
.article h3{margin-top:32px;font-size:22px}
.article p,.article li{font-size:17px;color:#344054}
.prose-list{padding-left:24px}
.article-note{
  margin-top:48px;
  padding:20px 24px;
  border-left:4px solid var(--primary);
  background:var(--primary-soft);
  border-radius:0 12px 12px 0;
  font-size:15px;
  color:#1e40af;
}
.contact-card{
  width:100%;
  max-width:680px;
  padding:36px;
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}
.small{margin-top:24px;color:var(--muted);font-size:14px}

/* ===========================
   FAQ
   =========================== */
.faq-section details{
  padding:20px 0;
  border-bottom:1px solid var(--border);
}
.faq-section details:first-of-type{border-top:1px solid var(--border)}
.faq-section summary{
  cursor:pointer;
  font-weight:700;
  font-size:18px;
  list-style:none;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  color:var(--text);
}
.faq-section summary::-webkit-details-marker{display:none}
.faq-section summary::after{
  content:'+';
  display:flex;
  align-items:center;
  justify-content:center;
  width:32px;
  height:32px;
  border-radius:50%;
  background:var(--surface-soft);
  font-size:20px;
  font-weight:400;
  color:var(--muted);
  flex-shrink:0;
  transition:all .2s ease;
}
.faq-section details[open] summary::after{
  content:'−';
  background:var(--primary-soft);
  color:var(--primary);
}
.faq-section details p{margin:16px 0 0;color:var(--muted);font-size:16px;line-height:1.7}

/* ===========================
   Footer
   =========================== */
.footer{background:#0f172a;color:#cbd5e1;padding-top:20px}
.footer-grid{
  display:grid;
  grid-template-columns:minmax(280px,2fr) 1fr 1fr;
  gap:60px;
  padding:60px 0 40px;
}
.footer .brand{
  display:inline-flex;
  align-items:center;
  text-decoration:none;
  line-height:0;
  margin-bottom:20px;
  background:#fff;
  padding:6px 12px;
  border-radius:8px;
}
.footer .logo-img{
  height:34px;
  width:auto;
  max-height:34px;
}
.footer-grid p{max-width:380px;color:#94a3b8;font-size:15px;line-height:1.7}
.footer-links{display:flex;flex-direction:column;align-items:flex-start;gap:12px;font-size:15px}
.footer-links strong{margin-bottom:8px;color:#fff;font-size:14px;text-transform:uppercase;letter-spacing:.06em}
.footer-links a{color:#94a3b8;text-decoration:none;transition:color .15s ease}
.footer-links a:hover{color:#fff}
.footer-bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:24px 0;
  border-top:1px solid rgba(255,255,255,.1);
  color:#64748b;
  font-size:14px;
}
.footer-bottom a{color:#94a3b8;text-decoration:none}
.footer-bottom a:hover{color:#fff}

/* ===========================
   Floating Cookie Consent Popup
   =========================== */
.cookie-banner{
  position:fixed;
  bottom:30px;
  left:30px;
  z-index:9999;
  width:calc(100% - 60px);
  max-width:420px;
  background:#1e293b;
  border:1px solid rgba(255,255,255,0.1);
  box-shadow:0 25px 50px -12px rgba(0,0,0,0.25);
  border-radius:20px;
  padding:24px;
  opacity:0;
  visibility:hidden;
  transform:translateY(30px);
  transition:all .4s cubic-bezier(0.16, 1, 0.3, 1);
  display:none;
}
.cookie-banner.cookie-visible{
  display:block;
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.cookie-banner-inner{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.cookie-banner-header{
  display:flex;
  align-items:center;
  gap:10px;
}
.cookie-banner-header svg{
  width:24px; height:24px; fill:#93bbff;
}
.cookie-banner-header strong{
  color:#fff; font-size:16px;
}
.cookie-banner p{
  margin:0;
  color:#cbd5e1;
  font-size:14px;
  line-height:1.6;
}
.cookie-banner p a{color:#93bbff;text-decoration:underline;font-weight:500}
.cookie-actions{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:4px;
}
.cookie-accept{
  flex:1;
  background:#3b82f6;
  color:#fff;
  border:none;
  padding:12px;
  border-radius:10px;
  font-weight:700;
  cursor:pointer;
  transition:background .2s ease;
}
.cookie-accept:hover{background:#2563eb}
.cookie-learn{
  flex:1;
  text-align:center;
  color:#93bbff;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  padding:12px;
  border-radius:10px;
  background:rgba(255,255,255,0.05);
  transition:background .2s ease;
}
.cookie-learn:hover{background:rgba(255,255,255,0.1)}

/* ===========================
   Ad Slot Placeholder
   =========================== */
.ad-slot{
  width:100%;
  max-width:728px;
  min-height:90px;
  margin:30px auto;
  padding:20px;
  background:var(--surface-soft);
  border:2px dashed #cbd5e1;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-size:14px;
  font-weight:600;
}

/* ===========================
   Focus Visible (a11y)
   =========================== */
:focus-visible{
  outline:3px solid rgba(37,99,235,0.5);
  outline-offset:3px;
}
a:focus-visible,button:focus-visible,select:focus-visible,textarea:focus-visible,input:focus-visible{
  outline:3px solid rgba(37,99,235,0.5);
  outline-offset:2px;
  border-radius:4px;
}

/* ===========================
   Responsive — Tablet
   =========================== */
@media(max-width:900px){
  .main-navigation{gap:20px;font-size:14px}
  .controls{grid-template-columns:1fr 1fr;gap:20px}
  .voice-control{grid-column:1/-1}
  .feature-card{grid-template-columns:1fr;gap:24px}
  .feature-stats{
    display:grid;
    grid-template-columns:1fr 1fr;
    padding:24px 0 0;
    border-left:0;
    border-top:1px solid var(--border);
  }
  .steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .footer-grid{gap:40px}
}

/* ===========================
   Responsive — Mobile
   =========================== */
@media(max-width:768px){
  .container,.narrow{width:100%;max-width:100%;padding-left:20px;padding-right:20px}

  /* Header & Nav */
  .header .nav{
    min-height:70px;
    flex-wrap:nowrap;
    gap:0;
  }
  .header .logo-img{
    height:36px;
    max-height:36px;
  }
  .nav-toggle{
    display:flex;
  }
  .main-navigation{
    position:absolute;
    top:100%;
    left:0;
    right:0;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    background:rgba(255,255,255,.98);
    backdrop-filter:blur(16px);
    -webkit-backdrop-filter:blur(16px);
    border-bottom:1px solid var(--border);
    box-shadow:0 20px 40px rgba(16,24,40,.1);
    max-height:0;
    overflow:hidden;
    transition:max-height .35s cubic-bezier(0.16, 1, 0.3, 1), padding .35s ease;
    padding:0 20px;
  }
  .main-navigation.nav-open{
    max-height:500px;
    padding:16px 20px 24px;
  }
  .main-navigation a, .nav-dropdown-btn{
    padding:16px 0;
    font-size:16px;
    border-bottom:1px solid var(--border);
    width:100%;
    justify-content:space-between;
  }
  .main-navigation > a:last-child{border-bottom:none}
  .dropdown-menu{
    position:static !important;
    transform:none !important;
    box-shadow:none !important;
    border:none !important;
    border-radius:0 !important;
    padding:8px 0 8px 16px !important;
    opacity:1 !important;
    visibility:visible !important;
    display:none;
    min-width:100%;
    background:transparent !important;
  }
  .nav-dropdown.is-open .dropdown-menu {
    display:flex !important;
  }
  .nav-dropdown.is-open .dropdown-menu a {
    opacity:1 !important;
    visibility:visible !important;
    color:var(--text) !important;
  }

  /* Content */
  .hero{padding:60px 0}
  h1{font-size:clamp(34px,9vw,42px)}
  .hero p{font-size:17px}
  .content-section,.info-section,.faq-section{padding:60px 0}
  .app-card{padding:24px;border-radius:20px}
  .app-head{flex-direction:column;gap:12px;margin-bottom:24px}
  .controls,.cards.three{grid-template-columns:1fr;gap:20px}
  .voice-control{grid-column:auto}
  .feature-stats{grid-template-columns:1fr;gap:16px}
  .steps{grid-template-columns:1fr}

  /* Footer */
  .footer-grid{grid-template-columns:1fr;gap:36px;padding:48px 0 32px}
  .footer-bottom{flex-direction:column;align-items:flex-start;gap:16px}

  /* Cookie banner */
  .cookie-banner{
    bottom:16px;
    left:16px;
    width:calc(100% - 32px);
    padding:20px;
  }
  .cookie-actions{flex-direction:column}
  .cookie-accept, .cookie-learn{width:100%}

  /* Breadcrumbs */
  .breadcrumbs{padding:10px 0;font-size:12px}
}

@media(max-width:480px){
  .header .logo-img{height:32px;max-height:32px}
  .hero-actions{flex-direction:column;width:100%}
  .hero-actions .primary-btn, .hero-actions .secondary-btn{width:100%}
}
