:root {
  --bg: #faf7f4;
  --bg-alt: #f5eee7;
  --card: #fbf8f5;
  --text: #2b2a29;
  --muted: #6f6a66;
  --line: #e6dfd8;
  --accent: #c42a2a;
  --accent-ink: #ffffff;
  --accent-soft: #f6e4e1;
  --maroon: #662b2b;
  --dark: #1e1c1b;
  --ok: #13795b;
  --warn: #b45309;
  --err: #c0262d;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--font);
}
a { color: inherit; }
.wrap { max-width: 1170px; margin: 0 auto; padding: 0 20px; }

/* announcement bar */
.notice {
  position: relative; display: flex; justify-content: center; align-items: center; gap: 14px;
  background: var(--dark); color: #cfcac5; font-size: .85rem; padding: 12px 40px; text-align: center;
}
.notice[hidden] { display: none; }
.tag { background: var(--accent); color: #fff; font-weight: 700; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; }
.notice-close { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: #cfcac5; font-size: 1.2rem; cursor: pointer; }

/* header */
.top { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .85rem; line-height: .95; letter-spacing: .04em; text-decoration: none; color: var(--text); }
.brand img { display: block; width: 40px; height: 40px; }
.brand.light { color: #fff; }
.nav { display: flex; gap: 30px; }
.nav a { text-decoration: none; font-size: .95rem; }
.nav a:hover { color: var(--accent); }
.top-right { display: flex; align-items: center; gap: 14px; }
.badge { font-size: .78rem; font-weight: 600; padding: 4px 10px; background: var(--accent-soft); color: var(--accent); }

/* buttons */
.btn-red, .btn-ghost, .btn-white, button.primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; border: 1px solid transparent; padding: 13px 22px;
}
.btn-red { background: var(--accent); color: #fff; padding: 12px 20px; font-size: .92rem; }
.btn-red:hover, button.primary:hover:not(:disabled) { background: #a82222; }
.btn-ghost { border-color: #c9c2bb; color: var(--text); background: transparent; }
.btn-ghost:hover { background: rgba(0,0,0,.04); }
.btn-white { background: #fff; color: var(--text); padding: 16px 28px; }
.btn-white:hover:not(:disabled) { background: #f1ebe5; }
.btn-white:disabled { opacity: .6; cursor: not-allowed; }
button.primary { width: 100%; background: var(--accent); color: var(--accent-ink); }
button.primary:disabled { opacity: .45; cursor: not-allowed; }
button.link { border: 0; background: none; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }

/* hero */
.hero {
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(232,190,160,.35), transparent 70%),
    radial-gradient(700px 500px at 10% 80%, rgba(225,210,195,.45), transparent 70%),
    var(--bg-alt);
  padding: 80px 0 90px;
  position: relative; overflow: hidden;
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-video + .wrap::before, .hero::after { content: none; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(250,246,242,.78); }
.hero > .wrap { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--muted); margin: 0 0 18px; }
.eyebrow.red { color: var(--accent); font-weight: 700; letter-spacing: .12em; }
.eyebrow.light { color: #d9bcbc; }
.eyebrow.small { margin-bottom: 12px; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); line-height: 1.05; font-weight: 400; letter-spacing: -.02em; margin: 0 0 22px; }
.h-lg { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.12; font-weight: 400; letter-spacing: -.015em; margin: 0 0 18px; }
.h-lg.light { color: #fff; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 30em; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* converter card */
.card { background: var(--card); border: 1px solid var(--line); border-top: 2px solid var(--accent); padding: 26px; box-shadow: 0 1px 0 rgba(0,0,0,.02); }

.drop {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  border: 1px dashed #c9c2bb; padding: 32px 16px; text-align: center; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.drop:hover, .drop:focus-visible, .drop.over { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.drop small { color: var(--muted); }

.file-list { list-style: none; padding: 0; margin: 12px 0 0; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.file-list .ext { font-size: .68rem; font-weight: 700; text-transform: uppercase; padding: 2px 6px; background: var(--accent-soft); color: var(--accent); min-width: 38px; text-align: center; }
.file-list .name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-list .size { color: var(--muted); font-size: .85rem; }
.file-list button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; padding: 0 4px; }

.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 20px 0; flex-wrap: wrap; }
.label { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid #c9c2bb; }
.seg button { border: 0; background: transparent; color: var(--text); padding: 9px 20px; font: inherit; font-weight: 600; cursor: pointer; }
.seg button + button { border-left: 1px solid #c9c2bb; }
.seg button[aria-checked="true"] { background: var(--text); color: #fff; }

.message { min-height: 1.5em; margin: 12px 0 0; font-size: .95rem; }
.message.ok { color: var(--ok); }
.message.err { color: var(--err); }
.message a { color: var(--accent); font-weight: 600; }

.usage { margin-top: 12px; }
.usage-text { font-size: .88rem; color: var(--muted); margin-bottom: 6px; }
.meter { height: 4px; background: var(--line); overflow: hidden; }
#meter-fill { height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.usage.empty #meter-fill { background: var(--warn); }

/* single-purpose tools */
.tool { background: var(--bg); padding: 90px 0; border-bottom: 1px solid var(--line); }
.tool.alt { background: var(--bg-alt); }
.tool-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.tool .perks-list { margin: 0; max-width: 30em; }
.tool-card .primary { margin-top: 16px; }
.tool-card .row { margin: 16px 0 0; }
.tool-card .fine { font-size: .85rem; color: var(--muted); margin: 8px 0 0; }

/* how it works */
.section { background: var(--bg); padding: 90px 0; border-bottom: 1px solid var(--line); }
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.steps li { padding: 28px 28px 8px 0; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.num { color: var(--muted); font-size: .85rem; }
.steps h3 { font-size: 1.3rem; font-weight: 400; margin: 10px 0 8px; }
.steps p { color: var(--muted); margin: 0; }

/* pricing */
.pricing { background: var(--bg-alt); padding: 90px 0; border-bottom: 1px solid var(--line); }
.pricing .lead { margin-bottom: 40px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 880px; }
.plan { background: var(--card); border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; }
.plan.featured { border-top: 2px solid var(--accent); background: #fff; }
.price { margin: 0 0 20px; }
.amount { font-size: 2.8rem; line-height: 1; letter-spacing: -.02em; }
.plan.featured .amount { color: var(--accent); }
.per { color: var(--muted); font-size: .95rem; margin-left: 6px; }
.plan-copy { color: var(--muted); margin: 0 0 12px; }
.perks-list { list-style: none; padding: 0; margin: 0 0 24px; }
.perks-list li { padding: 10px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.perks-list li::before { content: "✓"; color: var(--accent); margin-right: 10px; font-weight: 700; }
.btn-ghost.block { width: 100%; margin-top: auto; }
.pro-title { font-size: 1.5rem; font-weight: 400; margin: 0 0 8px; }
.plan .fine { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }
.restore { font-size: .9rem; color: var(--muted); margin-top: 16px; }
.restore summary { cursor: pointer; }
.restore form { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.restore input { flex: 1; min-width: 0; padding: 10px; border: 1px solid #c9c2bb; background: var(--bg); color: var(--text); font-family: ui-monospace, monospace; font-size: .85rem; }
.restore button { border: 1px solid #c9c2bb; background: transparent; color: var(--text); padding: 10px 16px; font: inherit; cursor: pointer; }
.upi-scan { margin: 0 0 12px; font-weight: 600; }
.upi img { display: block; width: 190px; height: 190px; margin: 0 auto 14px; background: #fff; padding: 6px; border: 1px solid var(--line); }
.upi-open { width: 100%; }
/* upi:// links only open an app on phones; desktops scan the QR code instead. */
@media (hover: hover) and (pointer: fine) { .upi-open { display: none; } }
.upi-id { font-size: .92rem; margin: 12px 0; text-align: center; }
.upi-id code { background: var(--accent-soft); padding: 2px 6px; }
.upi-form { display: grid; gap: 8px; margin-top: 8px; }
.upi-form label { font-size: .88rem; color: var(--muted); }
.upi-form input { padding: 10px; border: 1px solid #c9c2bb; background: var(--bg); color: var(--text); font: inherit; }
#upi-utr { font-family: ui-monospace, monospace; letter-spacing: .08em; }
.key-row code { font-size: .85rem; word-break: break-all; background: var(--accent-soft); padding: 2px 6px; }

/* footer */
.foot { background: var(--dark); color: #a8a29d; padding: 56px 0; font-size: .92rem; }
.foot-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.foot p { margin: 0; }

@media (max-width: 860px) {
  .hero { padding: 48px 0 56px; }
  .hero-grid, .plans, .tool-grid { grid-template-columns: 1fr; gap: 24px; }
  .tool { padding: 56px 0; }
  .nav { display: none; }
  .steps { grid-template-columns: 1fr; }
  .steps li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 56px 0; }
  .pricing { padding: 56px 0; }
}

.quality { margin: 8px 0 20px; }
.row.tight { margin: 0 0 8px; }
.size-out { font-weight: 600; font-size: .95rem; }
.quality input[type="range"] { width: 100%; accent-color: var(--accent); margin: 0; }
.ticks { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-top: 2px; }
.quality .fine { font-size: .85rem; color: var(--muted); margin: 6px 0 0; min-height: 1.2em; }

.gov { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0; font-size: 14px; cursor: pointer; }
.gov kbd { font: 12px monospace; border: 1px solid currentColor; border-radius: 4px; padding: 0 5px; opacity: .7; }
.pro-tag { font-size: 11px; font-weight: 700; color: #d11; margin: 0 4px; }

.lang { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); background: var(--card); color: inherit; border-radius: 4px; margin-inline-end: 8px; }
[dir="rtl"] .drop, [dir="rtl"] .hero-copy, [dir="rtl"] .tool-copy { text-align: right; }
