/* ReidConvert — shared styles. Brand: navy #01295D, gold #C29039. */

:root {
  --navy: #01295D;
  --navy-700: #06336e;
  --navy-900: #021c42;
  --gold: #C29039;
  --gold-600: #a4771f;      /* darker gold for AA text on light */
  --gold-100: #f6edda;
  --ink: #13233d;
  --body: #3a475c;
  --muted: #677488;
  --line: #e2e7ef;
  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --bg-navy: #01295D;
  --ok: #0f7a4f;
  --ok-bg: #e7f6ee;
  --warn: #b4540a;
  --err: #c0392b;
  --err-bg: #fdecea;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(5, 25, 60, .06), 0 2px 8px rgba(5, 25, 60, .05);
  --shadow: 0 6px 24px rgba(5, 25, 60, .09);
  --shadow-lg: 0 18px 50px rgba(5, 25, 60, .14);
  --maxw: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* visually-hidden + skip link + focus */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: 12px; top: -48px; background: var(--navy); color: #fff;
  padding: 10px 16px; border-radius: 8px; z-index: 200; transition: top .15s ease;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid #7db0ff; outline-offset: 2px; border-radius: 4px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--navy); color: #fff; border: 2px solid var(--navy);
  border-radius: var(--radius-sm); padding: 13px 24px; font-size: 1rem; font-weight: 700;
  cursor: pointer; text-decoration: none; transition: background .15s ease, transform .05s ease;
  font-family: inherit;
}
.btn:hover { background: var(--navy-900); border-color: var(--navy-900); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #2a1e05; }
.btn-gold:hover { background: #b2822f; border-color: #b2822f; }
.btn-ghost { background: #fff; color: var(--navy-700); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); border-color: #cdd6e4; }
.btn-lg { padding: 16px 30px; font-size: 1.08rem; }
.btn-sm { padding: 8px 14px; font-size: .9rem; }

/* ---------- header ---------- */
#site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92);
  backdrop-filter: saturate(140%) blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 20px; min-height: 88px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand img, .brand-mark { display: block; height: 64px; width: auto; }
.brand-name { font-size: 1.5rem; font-weight: 800; color: var(--navy); letter-spacing: -.015em;
  line-height: 1; white-space: nowrap; }
.nav-menu { margin-left: auto; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.nav-list > li > a { display: inline-flex; align-items: center; gap: 5px; padding: 10px 14px; border-radius: 8px;
  color: var(--ink); font-weight: 600; }
.nav-list > li > a:hover { background: var(--bg-soft); text-decoration: none; }
.chev { opacity: .7; }
.has-sub { position: relative; }
.submenu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease; }
.has-sub:hover .submenu, .has-sub:focus-within .submenu, .has-sub.open .submenu {
  opacity: 1; visibility: visible; transform: translateY(0); }
.submenu a { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-radius: 8px; color: var(--ink); font-weight: 500; }
.submenu a:hover { background: var(--bg-soft); text-decoration: none; }
.submenu a.is-soon { color: var(--muted); cursor: default; }
.badge { background: var(--gold-100); color: var(--gold-600); font-size: .68rem; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; cursor: pointer; padding: 0; flex-direction: column; gap: 4px;
  align-items: center; justify-content: center; }
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 768px) {
  .nav { min-height: 72px; }
  .brand img, .brand-mark { height: 48px; }
  .brand-name { font-size: 1.25rem; }
  .hero-brand { padding: 15px 22px; border-radius: 18px; margin-bottom: 22px; }
  .hero-brand img { height: 86px; }
  .nav-toggle { display: inline-flex; }
  .nav-menu { position: absolute; left: 0; right: 0; top: 72px; background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); max-height: 0; overflow: hidden; transition: max-height .25s ease; margin: 0; }
  .nav-menu.open { max-height: 80vh; overflow: auto; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px; }
  .nav-list > li > a { padding: 14px; justify-content: space-between; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0;
    display: none; padding: 0 0 8px 10px; }
  .has-sub.open .submenu { display: block; }
}

/* ---------- hero ---------- */
.hero { background: radial-gradient(1200px 500px at 80% -10%, #0b3d86 0%, transparent 60%), var(--bg-navy);
  color: #eaf1fb; padding: 64px 0 76px; text-align: center; }
.hero h1 { color: #fff; }
.hero-brand { display: inline-block; background: #fff; border-radius: 22px; padding: 22px 32px;
  box-shadow: var(--shadow-lg); margin-bottom: 30px; }
.hero-brand img { display: block; height: 132px; width: auto; }
.hero .sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: #c2d3ec; max-width: 680px; margin: 0 auto 28px; }
.hero .badges { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: center; margin-top: 22px;
  color: #bcd0ee; font-size: .92rem; }
.hero .badges span { display: inline-flex; align-items: center; gap: 7px; }

/* homepage big dropzone */
.hero-drop { max-width: 620px; margin: 0 auto; background: rgba(255,255,255,.06); border: 2px dashed rgba(255,255,255,.4);
  border-radius: var(--radius); padding: 40px 24px; cursor: pointer; transition: .15s ease; }
.hero-drop:hover, .hero-drop:focus-visible, .hero-drop.is-drag { background: rgba(255,255,255,.12); border-color: #fff; }
.hero-drop .ico { font-size: 2.6rem; }
.hero-drop p { margin: 8px 0 0; color: #d7e4f6; }
.hero-drop .hint { font-size: .9rem; color: #a9c1e4; margin-top: 6px; }
.hero-drop .btn { margin-top: 16px; }
.route-msg { max-width: 620px; margin: 14px auto 0; min-height: 1.4em; color: #ffe6b8; font-weight: 600; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 38px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 800; color: var(--gold-600); }

/* tool grid */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.tool-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease; }
a.tool-card:hover { text-decoration: none; transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cdd9ec; }
.tool-card.soon { opacity: .96; }
.tool-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--gold-100); color: var(--navy);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.tool-ico svg { width: 26px; height: 26px; }
.tool-card h3 { margin-bottom: 4px; color: var(--ink); }
.tool-card .fmt { font-size: .78rem; font-weight: 700; color: var(--gold-600); letter-spacing: .03em; margin-bottom: 10px; }
.tool-card .desc { color: var(--muted); font-size: .94rem; margin: 0; flex: 1; }
.tool-card .go { margin-top: 16px; font-weight: 700; color: var(--navy-700); display: inline-flex; align-items: center; gap: 6px; }
.tool-card .soon-tag { position: absolute; top: 16px; right: 16px; }

/* privacy / feature strip */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.feature { text-align: left; }
.feature .fico { width: 44px; height: 44px; border-radius: 12px; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.feature .fico svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 4px; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- footer ---------- */
#site-footer { background: var(--navy-900); color: #c7d4e8; margin-top: 72px; padding: 52px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.footer-brand-lockup { gap: 14px; }
.footer-brand-lockup .mark-chip { display: inline-flex; background: #fff; border-radius: 12px; padding: 7px; box-shadow: var(--shadow-sm); }
.footer-brand-lockup .mark-chip img { height: 56px; width: auto; display: block; }
.footer-brand-lockup .brand-name { color: #fff; font-size: 1.45rem; }
.footer-brand p { margin-top: 16px; color: #9fb2d0; max-width: 340px; }
#site-footer h3 { color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px; }
#site-footer ul { list-style: none; margin: 0; padding: 0; }
#site-footer li { margin: 0 0 9px; }
#site-footer a { color: #c7d4e8; display: inline-flex; align-items: center; gap: 8px; }
#site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 22px; font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-bottom .muted { color: #8ba0c2; }

/* ---------- tool page ---------- */
.tool-hero { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 40px 0 34px; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }
.tool-hero h1 { margin-bottom: 8px; }
.tool-hero p.lead { font-size: 1.1rem; color: var(--body); max-width: 680px; margin: 0; }

.app { padding: 36px 0 10px; }
.app-wrap { max-width: 760px; margin: 0 auto; }
.dropzone { background: #fff; border: 2px dashed #c4d0e2; border-radius: var(--radius); padding: 40px 24px;
  text-align: center; cursor: pointer; transition: .15s ease; box-shadow: var(--shadow-sm); }
.dropzone:hover, .dropzone:focus-visible, .dropzone.is-drag { border-color: var(--navy); background: #f7faff; }
.dropzone .ico { font-size: 2.4rem; }
.dropzone h2 { font-size: 1.2rem; margin: 10px 0 4px; }
.dropzone p { color: var(--muted); margin: 0; }
.dropzone .btn { margin-top: 16px; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 20px; margin-top: 20px; }
.options { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; }
.options .field { display: flex; flex-direction: column; gap: 7px; }
.options label { font-weight: 600; font-size: .9rem; color: var(--ink); }
.range-row { display: flex; align-items: center; gap: 12px; }
input[type=range] { accent-color: var(--navy); width: 180px; }
.range-val { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--navy-700); min-width: 46px; }

/* file list */
.filelist { list-style: none; margin: 0; padding: 0; }
.file-item { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-top: 1px solid var(--line); }
.file-item:first-child { border-top: 0; }
.file-thumb { width: 52px; height: 52px; border-radius: 9px; background: var(--bg-soft) center/cover no-repeat;
  flex: none; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .7rem;
  border: 1px solid var(--line); overflow: hidden; }
.file-main { flex: 1; min-width: 0; }
.file-name { font-weight: 600; color: var(--ink); word-break: break-word; }
.file-meta { font-size: .84rem; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.status { font-weight: 700; font-size: .8rem; padding: 2px 9px; border-radius: 999px; }
.status.waiting { background: #eef1f6; color: #566; }
.status.converting { background: #fff3da; color: var(--warn); }
.status.done { background: var(--ok-bg); color: var(--ok); }
.status.error { background: var(--err-bg); color: var(--err); }
.file-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn { width: 36px; height: 36px; border: 1px solid var(--line); background: #fff; border-radius: 9px;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.icon-btn:hover { background: var(--bg-soft); color: var(--err); border-color: #e4b7b1; }
.spin { width: 20px; height: 20px; border: 3px solid #d6deea; border-top-color: var(--navy); border-radius: 50%;
  animation: rc-spin .8s linear infinite; }
@keyframes rc-spin { to { transform: rotate(360deg); } }

.overall { margin-top: 16px; display: none; }
.overall.show { display: block; }
.bar { height: 10px; background: #e7ecf4; border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--navy), #2f66b8); transition: width .25s ease; }
.overall p { margin: 8px 2px 0; font-size: .9rem; color: var(--muted); }

.actions-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.notice { padding: 11px 14px; border-radius: 10px; font-size: .92rem; font-weight: 600; margin-top: 14px; display: none; }
.notice.show { display: block; }
.notice.info { background: #eaf1fc; color: var(--navy-700); }
.notice.warn { background: #fff3da; color: var(--warn); }
.notice.err { background: var(--err-bg); color: var(--err); }

.dl-link { font-weight: 700; color: var(--navy-700); display: inline-flex; align-items: center; gap: 6px; }

/* content / FAQ */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { margin-top: 1.4em; color: var(--navy-700); }
.prose ul { padding-left: 20px; color: var(--body); }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 2px 18px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--ink); padding: 15px 0; }
.faq details[open] summary { color: var(--navy-700); }
.faq p { color: var(--body); padding-bottom: 6px; }

/* simple page */
.page { padding: 52px 0; }
.page .prose p { color: var(--body); }

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  input[type=range] { width: 140px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
