/*
Theme Name: CSVtoExcel Premium
Theme URI: https://csvtoexcel.site/
Author: csvtoexcel.site team
Author URI: https://csvtoexcel.site/
Description: Premium conversion-focused theme for csvtoexcel.site — midnight-navy hero with amber accents, working client-side CSV to Excel and Excel to CSV converters, spreadsheet guides blog, and clean Adsterra ad slots. No page builder needed.
Version: 4.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: csvtoexcel-premium
Tags: blog, custom-menu, featured-images, threaded-comments
*/
/* ============ v3.0 "Midnight Amber" — brand-new visual design ============ */
:root {
  color-scheme: light;
  --navy-950: #0A1628;
  --navy-900: #0F2240;
  --navy-800: #16305A;
  --navy-700: #1E4273;
  --amber-700: #B45309;
  --amber-600: #D97706;
  --amber-500: #F59E0B;
  --amber-400: #FBBF24;
  --amber-100: #FEF3C7;
  --amber-50: #FFFBEB;
  --paper: #FAF8F3;
  --surface: #FFFFFF;
  --surface-2: #F3EFE6;
  --ink: #0E1B30;
  --ink-soft: #24344F;
  --muted: #5C6B84;
  --line: #E7E1D3;
  --line-soft: #F0EBDD;
  --hero-ink: #FFFFFF;
  --hero-muted: #B9C6DC;
  --success: #15803D;
  --danger: #DC2626;
  --shadow-lg: 0 30px 80px rgba(10, 22, 40, .22);
  --shadow-md: 0 16px 44px rgba(10, 22, 40, .12);
  --shadow-sm: 0 6px 20px rgba(10, 22, 40, .08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.shell { overflow: clip; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
h1, h2, h3, h4 { font-family: "Manrope", "DM Sans", sans-serif; letter-spacing: -0.035em; margin: 0; line-height: 1.08; }

/* ---------- top navigation ---------- */
.topnav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { min-height: 70px; display: flex; align-items: center; gap: 14px; }
.brand { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 23px; letter-spacing: -0.03em; color: var(--navy-950); white-space: nowrap; margin-right: 8px; }
.brand span { color: var(--amber-600); }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-link { border: 0; background: transparent; padding: 10px 13px; border-radius: 999px; color: var(--muted); cursor: pointer; font-weight: 600; font-size: 14.5px; transition: .18s ease; }
.nav-link:hover, .nav-link[aria-current="page"] { background: var(--amber-100); color: var(--navy-950); }
.nav-action {
  border: 0; cursor: pointer; white-space: nowrap; margin-left: 10px;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  color: #3A2503; font-weight: 800; font-size: 14.5px;
  padding: 11px 20px; border-radius: 999px;
  box-shadow: 0 8px 22px rgba(245, 158, 11, .35);
  transition: transform .18s ease, box-shadow .18s ease;
}
.nav-action:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(245, 158, 11, .45); }
.mobile-menu { display: none; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 12px; cursor: pointer; font-weight: 700; }
/* NOTE: .page rule intentionally removed — it collided with WordPress body.page class and hid the entire site. */

/* ---------- hero (centered, midnight navy) ---------- */
.hero {
  color: var(--hero-ink);
  background:
    radial-gradient(900px 420px at 12% -6%, rgba(245, 158, 11, .16), transparent 60%),
    radial-gradient(1000px 520px at 88% 4%, rgba(30, 66, 115, .9), transparent 62%),
    radial-gradient(700px 500px at 50% 115%, rgba(245, 158, 11, .10), transparent 60%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 100%);
  padding: 84px 0 110px;
  position: relative;
  overflow: clip;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.6px);
  background-size: 26px 26px;
  mask-image: radial-gradient(75% 60% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(75% 60% at 50% 0%, #000 30%, transparent 100%);
}
.hero-grid { display: block; text-align: center; position: relative; }
.hero-copy { max-width: 880px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber-400); background: rgba(245, 158, 11, .12);
  border: 1px solid rgba(245, 158, 11, .35); border-radius: 999px;
  padding: 8px 18px; margin-bottom: 26px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber-400); box-shadow: 0 0 12px var(--amber-400); }
.hero-copy h1 { font-size: clamp(46px, 6.4vw, 84px); font-weight: 800; }
.hero-copy h1 span { color: transparent; background: linear-gradient(120deg, var(--amber-400), var(--amber-600)); -webkit-background-clip: text; background-clip: text; }
.hero-copy > p { color: var(--hero-muted); font-size: clamp(17px, 2vw, 21px); max-width: 640px; margin: 26px auto 0; line-height: 1.65; }
.trust-row { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 30px; color: var(--hero-muted); font-size: 14.5px; font-weight: 600; }
.trust-row span { display: inline-flex; align-items: center; gap: 9px; }
.tick { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(245,158,11,.18); border: 1px solid rgba(245,158,11,.5); color: var(--amber-400); font-weight: 800; font-size: 12px; }

/* ---------- converter card ---------- */
.converter {
  position: relative; max-width: 880px; margin: 54px auto 0; text-align: left;
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius-xl);
  border-top: 5px solid var(--amber-500);
  box-shadow: var(--shadow-lg);
  padding: 22px;
}
.tool-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 10px 18px; }
.tool-head strong { font-family: "Manrope", sans-serif; font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.private { font-size: 12.5px; font-weight: 600; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.private::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(21,128,61,.14); }
.dropzone {
  min-height: 240px; border: 2px dashed #D8CFB8; border-radius: var(--radius-lg);
  display: grid; place-items: center; text-align: center; padding: 30px; cursor: pointer;
  background: linear-gradient(180deg, var(--amber-50), #fff);
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
  outline: none;
}
.dropzone:hover, .dropzone:focus-visible, .dropzone.drag { border-color: var(--amber-500); background: var(--amber-50); transform: scale(1.005); }
.upload-icon { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; background: var(--navy-950); color: var(--amber-400); box-shadow: var(--shadow-md); }
.dropzone h2 { font-size: 23px; font-weight: 800; }
.dropzone p { margin: 8px 0 18px; color: var(--muted); font-size: 14.5px; }
.browse { display: inline-flex; padding: 11px 22px; border-radius: 999px; background: var(--navy-950); color: #fff; font-weight: 800; font-size: 14px; box-shadow: var(--shadow-sm); }
#fileInput { display: none; }
.file-state { display: none; padding: 20px 8px 8px; }
.file-state.visible { display: block; }
.file-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.file-name { font-weight: 800; overflow-wrap: anywhere; font-size: 16px; }
.file-details { color: var(--muted); font-size: 13px; margin-top: 4px; }
.clear-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 8px 14px; cursor: pointer; font-weight: 700; font-size: 13.5px; }
.clear-btn:hover { border-color: var(--amber-500); color: var(--amber-700); }
.preview-wrap { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.preview-scroll { overflow: auto; max-height: 220px; }
table { width: 100%; border-collapse: collapse; min-width: 420px; font-size: 12.5px; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); text-align: left; white-space: nowrap; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
th { position: sticky; top: 0; background: var(--navy-950); color: #fff; font-weight: 700; }
.tool-controls { display: grid; grid-template-columns: 170px 1fr; gap: 12px; margin-top: 16px; }
select { width: 100%; border: 1.5px solid var(--line); color: var(--ink); background: var(--surface); border-radius: 12px; padding: 13px 14px; font-weight: 600; }
select:focus { border-color: var(--amber-500); outline: none; }
.convert-btn {
  border: 0; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
  color: #3A2503; padding: 14px 20px; font-weight: 800; font-size: 16px;
  box-shadow: 0 10px 26px rgba(245, 158, 11, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.convert-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(245, 158, 11, .45); }
.convert-btn:disabled { cursor: not-allowed; opacity: .55; }
.status { min-height: 22px; margin-top: 12px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.status.error { color: var(--danger); }
.status.success { color: var(--success); font-weight: 700; }
#toast, .toast { position: fixed; left: 50%; bottom: 26px; z-index: 100; transform: translate(-50%, 20px); background: var(--navy-950); color: #fff; padding: 12px 20px; border-radius: 999px; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: .25s ease; font-weight: 600; font-size: 14px; }
#toast.show, .toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-head { max-width: 780px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(34px, 4.6vw, 54px); font-weight: 800; }
.section-head h2 em { font-style: normal; color: var(--amber-600); }
.section-head p { margin: 18px auto 0; color: var(--muted); font-size: 18px; max-width: 620px; }

/* ---------- proof strip ---------- */
.proof-strip { margin-top: -64px; position: relative; z-index: 5; }
.proof-inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); overflow: hidden;
}
.proof-item { padding: 28px 26px; border-right: 1px solid var(--line-soft); text-align: center; }
.proof-item:last-child { border-right: 0; }
.proof-item strong { display: block; font-family: "Manrope", sans-serif; font-size: 30px; font-weight: 800; color: var(--navy-950); letter-spacing: -0.03em; }
.proof-item strong::after { content: ""; display: block; width: 34px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--amber-400), var(--amber-600)); margin: 10px auto 0; }
.proof-item span { color: var(--muted); font-size: 13.5px; font-weight: 600; }

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px 30px; position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, var(--amber-400), var(--amber-600)); opacity: 0; transition: opacity .2s ease; }
.feature:hover::before { opacity: 1; }
.feature:first-child { grid-column: span 1; background: var(--navy-950); border-color: var(--navy-950); color: #fff; }
.feature:first-child p, .feature:first-child .sheet-row span { color: var(--hero-muted); }
.feature-icon { width: 54px; height: 54px; display: grid; place-items: center; border-radius: 18px; background: var(--amber-100); color: var(--amber-700); margin-bottom: 22px; }
.feature:first-child .feature-icon { background: rgba(245,158,11,.16); color: var(--amber-400); }
.feature h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }
.sheet-visual { margin-top: 26px; border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-sm); overflow: hidden; background: rgba(255,255,255,.05); }
.sheet-row { display: grid; grid-template-columns: .6fr 1.3fr .9fr; }
.sheet-row span { min-height: 38px; border-bottom: 1px solid rgba(255,255,255,.1); border-right: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; padding: 8px 10px; font-size: 12px; }
.sheet-row:first-child span { background: var(--amber-500); color: #3A2503; font-weight: 800; }
.sheet-row:last-child span { border-bottom: 0; }

/* ---------- steps ---------- */
.steps { background: var(--navy-950); color: #fff; border-radius: 40px; margin: 0 max(20px, calc((100% - var(--max)) / 2)); }
.steps .section-head h2 { color: #fff; }
.steps .section-head p { color: var(--hero-muted); }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { counter-increment: step; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 34px 30px; position: relative; }
.step-num { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-family: "Manrope", sans-serif; font-weight: 800; font-size: 19px; color: #3A2503; background: linear-gradient(135deg, var(--amber-400), var(--amber-600)); box-shadow: 0 10px 26px rgba(245,158,11,.35); margin-bottom: 22px; }
.step-num::before { content: "0" counter(step); }
.step h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; color: #fff; }
.step p { color: var(--hero-muted); margin: 0; font-size: 15.5px; }

/* ---------- testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px; display: flex; flex-direction: column; position: relative; }
.quote::before { content: "\201C"; font-family: Georgia, serif; font-size: 64px; line-height: 1; color: var(--amber-500); margin-bottom: 6px; }
.quote blockquote { font-size: 17.5px; margin: 0; line-height: 1.65; flex: 1; }
.quote small { color: var(--muted); display: block; margin-top: 20px; font-weight: 600; }
.sample-label { display: inline-block; width: fit-content; margin-bottom: 4px; color: var(--amber-700); background: var(--amber-100); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: 5px 12px; border-radius: 999px; }

/* ---------- faq ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq-head { text-align: center; margin-bottom: 40px; }
.faq-head h2 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 800; }
details { border: 1px solid var(--line); border-radius: var(--radius-md); margin-bottom: 14px; background: var(--surface); overflow: hidden; transition: box-shadow .2s ease; }
details[open] { box-shadow: var(--shadow-sm); border-color: #D8CFB8; }
summary { list-style: none; cursor: pointer; font-family: "Manrope", sans-serif; font-weight: 700; font-size: 18px; padding: 22px 64px 22px 26px; position: relative; letter-spacing: -0.01em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; font-weight: 400; color: #fff; background: var(--navy-950); transition: .2s ease; }
details[open] summary::after { content: "−"; background: var(--amber-500); color: #3A2503; }
details p { margin: 0; padding: 0 26px 26px; color: var(--muted); max-width: 720px; font-size: 16px; }

/* ---------- cta ---------- */
.cta-band { padding: 20px 0 100px; }
.cta-card {
  display: flex; justify-content: space-between; align-items: center; gap: 34px;
  padding: 56px; border-radius: 36px; color: #3A2503;
  background: linear-gradient(120deg, var(--amber-400) 0%, var(--amber-500) 55%, var(--amber-600) 100%);
  box-shadow: 0 30px 70px rgba(245, 158, 11, .35);
  position: relative; overflow: hidden;
}
.cta-card::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -140px; top: -140px; background: rgba(255,255,255,.22); }
.cta-card h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; position: relative; }
.cta-card p { margin: 12px 0 0; max-width: 560px; font-weight: 600; color: #5C3A08; position: relative; }
.cta-card .cta-btn { display: inline-block; border: 0; background: var(--navy-950); color: #fff; padding: 16px 34px; border-radius: 999px; font-weight: 800; font-size: 16.5px; cursor: pointer; white-space: nowrap; text-decoration: none; box-shadow: 0 14px 30px rgba(10,22,40,.35); transition: transform .15s ease; position: relative; flex: none; }
.cta-card .cta-btn:hover { transform: translateY(-2px); }
.cta-card button { border: 0; background: var(--navy-950); color: #fff; padding: 16px 34px; border-radius: 999px; font-weight: 800; font-size: 16.5px; cursor: pointer; white-space: nowrap; box-shadow: 0 14px 30px rgba(10,22,40,.35); }

/* ---------- subhero / content pages ---------- */
.subhero { padding: 88px 0 64px; background: linear-gradient(180deg, var(--navy-950), var(--navy-900)); color: #fff; position: relative; overflow: clip; }
.subhero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1.6px); background-size: 24px 24px; mask-image: radial-gradient(70% 90% at 50% 0%, #000, transparent 100%); -webkit-mask-image: radial-gradient(70% 90% at 50% 0%, #000, transparent 100%); }
.subhero .wrap { position: relative; }
.subhero h1 { font-size: clamp(40px, 5.4vw, 68px); font-weight: 800; max-width: 920px; }
.subhero p { color: var(--hero-muted); max-width: 700px; font-size: 19px; margin: 20px 0 0; }
.content-section { padding: 70px 0 100px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; align-items: start; }
.prose { max-width: 780px; }
.prose h2 { font-size: 33px; font-weight: 800; margin: 52px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 23px; font-weight: 800; margin: 36px 0 10px; }
.prose p, .prose li { color: var(--ink-soft); font-size: 17px; line-height: 1.75; }
.prose strong { color: var(--ink); }
.prose a, .contact-link { color: var(--amber-700); font-weight: 700; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose a:hover { color: var(--amber-600); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 8px 0; }
.prose nav.toc { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--amber-500); border-radius: var(--radius-md); padding: 24px 28px; margin: 34px 0; box-shadow: var(--shadow-sm); }
.prose nav.toc h2 { font-size: 20px !important; margin: 0 0 12px !important; }
.prose nav.toc ul { margin: 0; padding-left: 20px; }
.prose nav.toc li { margin: 7px 0; font-size: 15.5px; }
.prose figure { margin: 36px 0; }
.prose figure img { width: 100%; height: auto; border-radius: var(--radius-md); border: 1px solid var(--line); display: block; box-shadow: var(--shadow-sm); }
.prose figcaption { font-size: 14px; color: var(--muted); margin-top: 12px; text-align: center; }
.prose .post-meta { color: var(--muted); font-size: 14.5px; margin: -6px 0 24px; font-weight: 600; }
.prose pre { font-size: 14px; }
.breadcrumb { font-size: 14px; color: var(--muted); margin: 0 0 24px; font-weight: 600; }
.breadcrumb a { color: var(--amber-700); font-weight: 700; text-decoration: none; }
.guide-wrap { max-width: 820px; margin: 0 auto; }
.prose .faq details { border: 1px solid var(--line); }
.author-box { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; margin: 48px 0 0; box-shadow: var(--shadow-sm); }
.author-box .avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--amber-400), var(--amber-600)); color: #3A2503; display: flex; align-items: center; justify-content: center; font-weight: 800; flex: none; font-family: "Manrope", sans-serif; font-size: 18px; }
.author-box strong { font-family: "Manrope", sans-serif; font-size: 17px; }
.author-social { display: flex; gap: 10px; }
.prose aside.related { margin-top: 44px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 30px; }
.prose aside.related h3 { font-size: 22px; margin-bottom: 14px; }
.prose aside.related ul { padding-left: 20px; margin: 0; }
.prose aside.related li { margin: 9px 0; }
.post-hero { margin: 0 0 32px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.post-hero img { display: block; width: 100%; height: auto; }
.side-card { position: sticky; top: 100px; background: var(--navy-950); color: #fff; padding: 30px 28px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.side-card h3 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.side-card p { color: var(--hero-muted); margin: 0 0 22px; font-size: 15px; }
.side-card button, .side-card a.contact-link { width: 100%; border: 0; border-radius: 999px; padding: 14px; background: linear-gradient(135deg, var(--amber-400), var(--amber-600)); color: #3A2503; font-weight: 800; cursor: pointer; display: block; text-align: center; text-decoration: none; font-size: 16px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--amber-500); border-radius: var(--radius-lg); padding: 34px; margin: 30px 0; box-shadow: var(--shadow-sm); }
.contact-email { font-size: 23px; font-weight: 800; margin: 14px 0; color: var(--navy-950); }

/* ---------- blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
a.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px; min-height: 320px; display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; overflow: hidden; position: relative; }
a.post:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
a.post:hover h2 { color: var(--amber-700); }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px; min-height: 320px; display: flex; flex-direction: column; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.post:first-child { grid-column: span 2; background: var(--navy-950); border-color: var(--navy-950); color: #fff; min-height: 380px; }
.post .tag { display: inline-block; color: var(--amber-700); background: var(--amber-100); font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 6px 14px; border-radius: 999px; width: fit-content; }
.post:first-child .tag { color: var(--amber-400); background: rgba(245,158,11,.14); border: 1px solid rgba(245,158,11,.4); }
.post h2 { font-size: 25px; font-weight: 800; margin: 18px 0 12px; transition: color .18s ease; }
.post:first-child h2 { font-size: clamp(30px, 3.4vw, 44px); }
.post p { color: var(--muted); margin: 0; font-size: 15.5px; flex: 1; }
.post:first-child p { color: var(--hero-muted); }
.post .read { margin-top: 24px; font-weight: 800; color: var(--amber-700); font-size: 15px; }
.post:first-child .read { color: var(--amber-400); }
.post-visual { flex: 1; min-height: 200px; margin-top: 26px; border-radius: var(--radius-md); display: grid; place-items: center; position: relative; overflow: hidden; background: radial-gradient(circle at 30% 20%, rgba(245,158,11,.25), transparent 60%), rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14); }
.post-visual b { font-family: "Manrope", sans-serif; font-size: 58px; font-weight: 800; color: var(--amber-400); z-index: 1; }

/* ---------- tools strip ---------- */
.tools-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tools-strip a { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 24px; text-decoration: none; display: block; transition: transform .2s ease, box-shadow .2s ease; border-top: 4px solid transparent; }
.tools-strip a:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-top-color: var(--amber-500); }
.tools-strip a strong { display: block; font-family: "Manrope", sans-serif; font-size: 18px; font-weight: 800; color: var(--navy-950); margin-bottom: 8px; letter-spacing: -0.02em; }
.tools-strip a span { font-size: 14.5px; color: var(--muted); }

/* ---------- footer ---------- */
footer { background: var(--navy-950); color: #fff; padding: 76px 0 30px; position: relative; overflow: clip; }
footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--amber-500), transparent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, .75fr); gap: 44px; }
.footer-intro h2 { font-size: 31px; font-weight: 800; max-width: 400px; color: #fff; }
.footer-intro h2 em { font-style: normal; color: var(--amber-400); }
.footer-intro p { color: var(--hero-muted); max-width: 430px; margin-top: 14px; }
.footer-social { margin-top: 22px; display: flex; gap: 12px; }
.footer-col strong { display: block; margin-bottom: 16px; color: var(--amber-400); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.footer-col button, .footer-col a { display: block; border: 0; background: transparent; color: var(--hero-muted); padding: 7px 0; cursor: pointer; text-align: left; font: inherit; transition: color .15s ease; }
.footer-col button:hover, .footer-col a:hover { color: #fff; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 20px; color: var(--hero-muted); font-size: 13.5px; }

/* ---------- ad slots ---------- */
.ad-zone { padding: 26px 0; background: var(--paper); }
.ad-slot { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.ad-label { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.ad-slot-box { position: relative; display: grid; place-items: center; max-width: 100%; overflow: hidden; background: var(--surface); border: 1px dashed #D8CFB8; border-radius: var(--radius-sm); }
.ad-slot-box iframe { position: relative; z-index: 1; display: block; border: 0; max-width: 100%; }
.c2e-ad-lazy { position: relative; z-index: 1; display: block; min-width: 1px; min-height: 1px; }
.c2e-ad-lazy iframe { display: block; }
.ad-placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 8px; color: var(--muted); font-size: 11.5px; text-align: center; font-weight: 600; }
.ad-slot-box:has(iframe) .ad-placeholder { display: none; }
.ad-desktop .ad-slot-box { width: 728px; min-height: 90px; }
.ad-mobile { display: none; }
.ad-mobile .ad-slot-box { width: 320px; min-height: 50px; }
.native-ad { margin: 40px 0 12px; padding: 22px 0; border-block: 1px solid var(--line); }
.native-ad .ad-slot-box { width: 100%; min-height: 110px; }
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 40px; align-items: start; }
.blog-ad-rail .ad-slot { position: sticky; top: 100px; }
.blog-ad-rail .ad-slot-box { width: 160px; min-height: 600px; }
.footer-ad-zone { margin-bottom: 52px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-ad-zone .ad-label { color: var(--hero-muted); }
.footer-ad-zone .ad-slot-box { width: 300px; min-height: 250px; background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.16); }
.footer-ad-zone .ad-placeholder { color: var(--hero-muted); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .mobile-menu { display: block; }
  .nav-links { display: none; position: absolute; left: 20px; right: 20px; top: 64px; padding: 12px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-md); border-radius: 18px; flex-direction: column; align-items: stretch; z-index: 50; }
  .nav-links.open { display: flex; }
  .nav-link { text-align: left; }
  .nav-action { display: none; }
  .brand { font-size: 20px; }
}
@media (max-width: 960px) {
  .proof-inner { grid-template-columns: repeat(2, 1fr); }
  .proof-item:nth-child(2) { border-right: 0; }
  .proof-item:nth-child(-n+2) { border-bottom: 1px solid var(--line-soft); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; gap: 40px; }
  .side-card { position: static; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-ad-rail { display: none; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .post:first-child { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .footer-intro { grid-column: span 3; }
  .steps { margin: 0 14px; border-radius: 30px; }
  .step-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { width: min(calc(100% - 28px), var(--max)); }
  .hero { padding: 60px 0 90px; }
  .converter { padding: 14px; margin-top: 40px; }
  .tool-head { align-items: flex-start; flex-direction: column; gap: 6px; }
  .dropzone { min-height: 220px; padding: 24px 16px; }
  .tool-controls { grid-template-columns: 1fr; }
  section { padding: 70px 0; }
  .section-head { margin-bottom: 38px; }
  .proof-strip { margin-top: -48px; }
  .proof-inner { grid-template-columns: 1fr 1fr; }
  .proof-item { padding: 20px 14px; }
  .proof-item strong { font-size: 24px; }
  .feature-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .cta-card { display: block; padding: 40px 30px; }
  .cta-card .cta-btn, .cta-card button { margin-top: 26px; }
  .subhero { padding: 60px 0 48px; }
  .blog-grid { grid-template-columns: 1fr; }
  .post:first-child { grid-column: auto; }
  .tools-strip { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-intro { grid-column: span 2; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  .ad-desktop { display: none; }
  .ad-mobile { display: flex; }
  .steps { margin: 0 10px; }
}
@media (max-width: 460px) {
  .proof-inner { grid-template-columns: 1fr; }
  .proof-item { border-right: 0 !important; border-bottom: 1px solid var(--line-soft); }
  .proof-item:last-child { border-bottom: 0; }
  .file-meta { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-intro { grid-column: auto; }
  .cta-card { padding: 34px 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

/* ---------- callout (guide privacy note) ---------- */
.callout { background: var(--amber-50); border: 1px solid #F3D9A4; border-left: 5px solid var(--amber-500); border-radius: var(--radius-md); padding: 22px 26px; margin: 30px 0; font-size: 15.5px; color: var(--ink-soft); }
.callout strong { color: var(--navy-950); }

/* Homepage hero CTA - clearer next step under the hero copy. */ .hero-cta{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin:28px 0 0;} .hero-cta-primary{display:inline-block;text-decoration:none;font-weight:800;border-radius:999px;padding:14px 26px;background:linear-gradient(135deg,var(--amber-400),var(--amber-500));color:#3a2503;box-shadow:0 8px 22px rgba(245,158,11,.35);} .hero-cta-primary:hover{filter:brightness(1.05);} @media(max-width:600px){.hero-cta{flex-direction:column;align-items:stretch;} .hero-cta-primary{text-align:center;}}