/* {{ brand }} — single stylesheet, no external assets.
   Responsive by default: fluid type with clamp(), max-width containers,
   grids that collapse to one column on phones. */

:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --ink: #16241e;
  --muted: #5d6f67;
  --line: #dfe7e2;
  --green: #0b5f3f;
  --green-dark: #084730;
  --green-soft: #e7f3ed;
  --accent: #0b8a5c;
  --danger: #b3261e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22, 36, 30, .05), 0 8px 24px rgba(22, 36, 30, .07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: clamp(0.95rem, 0.9rem + 0.3vw, 1.06rem);
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 3vw, 3.1rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); }
h3 { font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem); }
p { margin: .4em 0 1em; }
a { color: var(--green); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; background: var(--green-soft); padding: .1em .35em; border-radius: 6px; }

.container { width: min(1080px, 92%); margin-inline: auto; }
.section { padding-block: clamp(2.2rem, 5vw, 4.5rem); }
.alt { background: #eef4f1; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.accent { color: var(--accent); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 1rem; min-height: 60px; }
.brand { font-weight: 800; font-size: 1.15rem; color: var(--green-dark); text-decoration: none; letter-spacing: -.01em; }
.nav-links { margin-left: auto; display: flex; gap: 1.1rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 500; }
.nav-links a:hover { color: var(--green); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--ink); border-radius: 2px; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--surface); flex-direction: column; align-items: stretch; padding: .8rem 4%; border-bottom: 1px solid var(--line); gap: .4rem; }
  .nav.open .nav-links { display: flex; }
  .nav.open .nav-links a { padding: .55rem 0; }
}

.dev-banner { background: #7a1f1a; color: #fff; text-align: center; padding: .45rem 1rem; font-weight: 600; font-size: .9rem; }

/* hero */
.hero { background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%); padding-block: clamp(2.5rem, 7vw, 6rem) clamp(2rem, 5vw, 4rem); }
.hero-inner { max-width: 780px; }
.lead { font-size: clamp(1.02rem, .98rem + .5vw, 1.25rem); color: #33463e; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; }
.hero-note { margin-top: .9rem; }

/* buttons */
.btn { display: inline-block; background: var(--green); color: #fff; border: 1px solid var(--green-dark);
  padding: .7rem 1.3rem; border-radius: 10px; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; transition: background .15s ease; }
.btn:hover { background: var(--green-dark); color: #fff; }
.btn-primary { background: var(--accent); border-color: var(--green); }
.btn-primary:hover { background: var(--green); }
.btn-ghost { background: transparent; color: var(--green-dark); border-color: var(--line); }
.btn-ghost:hover { background: var(--green-soft); }
.btn-lg { padding: .9rem 1.6rem; font-size: 1.05rem; }
.btn-sm { padding: .4rem .85rem; font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* cards & grids */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.1rem, 2.5vw, 1.8rem); box-shadow: var(--shadow); }
.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 820px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

/* converter */
.convert-card { max-width: 720px; margin-inline: auto; }
.notice { background: var(--green-soft); border: 1px solid #c3dfd0; border-radius: 10px; padding: .85rem 1rem; margin-bottom: 1rem; font-size: .95rem; }
.notice-warn { background: #fdf3e7; border-color: #f0cf9e; color: #5c3a0a; }
.notice-stop { background: #fdecec; border-color: #f1bcbc; color: #611512; }
.dropzone { display: block; border: 2px dashed #b8cec3; border-radius: var(--radius); padding: clamp(1.4rem, 4vw, 2.4rem); text-align: center; cursor: pointer; background: #fbfdfc; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: var(--accent); background: var(--green-soft); }
.dropzone input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.dz-content { display: block; }
.dz-name { display: block; margin-top: .5rem; font-weight: 700; color: var(--green-dark); }
.form-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.1rem; }

.step { position: relative; padding-top: 2.4rem; }
.step-n { position: absolute; top: 1.1rem; left: 1.4rem; width: 2rem; height: 2rem; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; }
.step h3 { margin-top: .2rem; }

/* pricing */
.pricing-grid { align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan-for { min-height: 3.2em; }
.check-list { list-style: none; padding: 0; margin: 0 0 1.2rem; flex: 1; }
.check-list li { padding-left: 1.6em; position: relative; margin-bottom: .5em; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* faq */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.2rem; margin-bottom: .7rem; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { margin: .6em 0 0; color: #33463e; }

/* results */
.result-head { margin-bottom: 1.2rem; }
.trial-head { border-left: 5px solid var(--accent); }
.stats-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.2rem; }
.stats-row div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .55rem 1rem; display: flex; flex-direction: column; min-width: 90px; }
.stats-row b { font-size: 1.15rem; }
.stats-row span { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.result-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.2rem; }
.output-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.output-title { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: .6rem 1rem; background: #eef4f1; font-weight: 650; }
.output { margin: 0; padding: 1rem; overflow-x: auto; font-size: .84rem; line-height: 1.5; max-height: 60vh; overflow-y: auto; white-space: pre; }
.upsell { margin-top: 1.6rem; text-align: center; }

/* dashboard */
.sign-in-card, .dash-head { max-width: 720px; margin-inline: auto; }
.dash-head { margin-bottom: 1.4rem; }
.access-card h2 { margin-top: 0; }
.status { font-weight: 700; }
.ok-text { color: var(--accent); }
.off-text { color: var(--muted); }
.key-card { margin-top: 1.3rem; }
.key-row { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.key-row code { background: #10231b; color: #9fe8c8; padding: .55rem .8rem; border-radius: 8px; word-break: break-all; }
.manage-note { margin-top: 1rem; }

/* buy */
.buy-page { max-width: 640px; }
.checkout-card { margin-block: 1.4rem; }
.checkout-mount { min-height: 90px; }

/* api docs */
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: .5rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: #eef4f1; }
.table-wrap { overflow-x: auto; }

/* errors */
.error-page { max-width: 640px; text-align: center; }
.error-code { font-size: 3rem; font-weight: 800; color: #c9d8d1; margin: 0; }
.error-page .hero-actions { justify-content: center; }

/* legal */
.legal { max-width: 760px; }

/* footer */
.site-footer { background: #10231b; color: #cfe0d8; margin-top: 2rem; padding-block: 2.4rem 1.6rem; font-size: .92rem; }
.site-footer a { color: #9fe8c8; text-decoration: none; display: block; margin-bottom: .4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem; }
.footer-grid p { color: #8fa79c; }
.footer-note { margin-top: 1.6rem; border-top: 1px solid #234739; padding-top: 1.2rem; }
.footer-note p { margin: 0; color: #8fa79c; }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr; } }
