/* DearConvert homepage - single stylesheet, no framework.
   Brand: sky #0ea5e9 / navy #0b1220 (from the logo). System fonts only. */

:root {
  --sky: #0ea5e9;
  --sky-dark: #0284c7;
  --sky-soft: #e0f2fe;
  --navy: #0b1220;
  --text: #334155;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --radius: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-dark); text-decoration: none; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; }

h1, h2, h3 { color: var(--navy); line-height: 1.15; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 750; margin-bottom: 40px; }
h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  border-radius: 10px;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--sky);
  color: #fff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, .35);
}
.btn-primary:hover { background: var(--sky-dark); transform: translateY(-1px); }
.btn-ghost { border: 1px solid var(--border); color: var(--navy); background: #fff; }
.btn-ghost:hover { border-color: var(--sky); color: var(--sky-dark); }
.btn-invert { background: #fff; color: var(--navy); }
.btn-invert:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.btn-sm { padding: 8px 18px; font-size: .9rem; }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; }

/* ---- Nav ---- */
.nav-wrap {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo img { width: 150px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text); font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--navy); }
.nav-links .btn { color: #fff; }
.nav-login { color: var(--navy) !important; font-weight: 600 !important; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: .2s; }

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 96px 0 72px;
  /* Faint graph-paper grid that fades toward the center + bottom so the
     headline sits on near-white (Promptwatch treatment, dialed down). */
  background:
    radial-gradient(ellipse 70% 55% at 50% 38%, #fff 35%, rgba(255,255,255,0) 100%),
    linear-gradient(to bottom, rgba(255,255,255,.4), #fff 92%),
    linear-gradient(rgba(226,232,240,.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(226,232,240,.6) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
}
.badge {
  display: inline-block;
  background: var(--sky-soft);
  color: var(--sky-dark);
  font-size: .85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}
.accent {
  color: var(--sky);
  border-bottom: 4px dashed rgba(14, 165, 233, .45);
}
.hero-sub {
  max-width: 560px;
  margin: 22px auto 32px;
  font-size: 1.15rem;
  color: var(--muted);
}
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Hero mockup (pure CSS) ---- */
.mock {
  max-width: 780px;
  margin: 64px auto 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(11, 18, 32, .10);
  overflow: hidden;
  text-align: left;
}
.mock-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
}
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mock-bar span { margin-left: 10px; font-size: .75rem; color: var(--muted); background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 2px 12px; }
.mock-body { display: grid; grid-template-columns: 1.4fr 1fr; }
.mock-page { padding: 36px 32px; border-right: 1px solid var(--border); }
.mock-h1 { height: 18px; width: 75%; background: var(--navy); border-radius: 5px; opacity: .9; }
.mock-h2 { height: 10px; width: 55%; background: var(--border); border-radius: 5px; margin: 14px 0 26px; }
.mock-form { display: flex; gap: 8px; }
.mock-input { flex: 1; border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; font-size: .8rem; color: var(--muted); }
.mock-btn { background: var(--sky); color: #fff; border-radius: 8px; padding: 9px 18px; font-size: .8rem; font-weight: 600; }
.mock-panel { padding: 24px; background: var(--bg-alt); }
.mock-panel-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 16px; }
.mock-stat { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 10px; font-size: .8rem; margin-bottom: 12px; color: var(--text); }
.mock-stat b { color: var(--navy); }
.mock-track { height: 7px; background: var(--border); border-radius: 99px; overflow: hidden; }
.mock-fill { height: 100%; background: var(--sky); border-radius: 99px; }
.mock-stat.win .mock-fill { background: #10b981; }
.mock-note { font-size: .72rem; color: var(--muted); margin-top: 6px; }

/* ---- Statement ---- */
.statement { padding: 88px 0; text-align: center; }
.statement p {
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/* ---- Sections ---- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow {
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--sky-dark); margin-bottom: 12px;
}

/* ---- Cards ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--sky); box-shadow: 0 12px 30px rgba(11,18,32,.08); }
.card p { font-size: .95rem; color: var(--muted); }
.card-ic { font-size: 1.6rem; margin-bottom: 14px; }

/* ---- How-it-works rows ---- */
.row { display: flex; gap: 22px; align-items: flex-start; max-width: 640px; margin-bottom: 36px; }
.row:last-child { margin-bottom: 0; }
.row-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--sky);
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(14,165,233,.3);
}
.row-text p { color: var(--muted); font-size: .98rem; }

/* ---- Compare ---- */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-col {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  padding: 30px 28px;
}
.compare-us { border-color: var(--sky); box-shadow: 0 12px 34px rgba(14,165,233,.12); }
.compare-col h3 { margin-bottom: 18px; }
.compare-us h3 { color: var(--sky-dark); }
.list-x li, .list-check li {
  list-style: none;
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
  font-size: .95rem;
  color: var(--muted);
}
.list-check li { color: var(--text); }
.list-x li::before { content: "\2715"; color: #f43f5e; position: absolute; left: 0; font-weight: 700; font-size: .85rem; top: 2px; }
.list-check li::before { content: "\2713"; color: #10b981; position: absolute; left: 0; font-weight: 800; }

/* ---- FAQ ---- */
.faq {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 12px;
  background: #fff;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  padding: 18px 46px 18px 20px;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%);
  color: var(--sky);
  font-size: 1.3rem; font-weight: 600;
  transition: transform .2s;
}
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { padding: 0 20px 18px; color: var(--muted); font-size: .95rem; }

/* ---- CTA band ---- */
.cta-band {
  background: var(--navy);
  text-align: center;
  padding: 92px 0;
}
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: #93c5fd; margin-bottom: 32px; font-size: 1.1rem; }

/* ---- Footer (Zoho-style: brand + social, link columns, legal bar) ---- */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: clamp(40px, 7vw, 72px) 0 0;
  font-size: clamp(.85rem, .8rem + .25vw, .95rem);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(28px, 5vw, 56px);
  padding-bottom: clamp(36px, 6vw, 56px);
}
.footer-brand img { width: clamp(128px, 12vw, 150px); }
.footer-tag {
  color: #94a3b8;
  margin: 16px 0 22px;
  max-width: 260px;
  line-height: 1.6;
}
.footer-social { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-social a {
  display: flex; align-items: center; justify-content: center;
  width: clamp(34px, 3.4vw, 38px);
  height: clamp(34px, 3.4vw, 38px);
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: #94a3b8;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.footer-social a:hover { background: var(--sky); color: #fff; transform: translateY(-2px); }
.footer-social svg { width: 16px; height: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 {
  color: #fff;
  font-size: clamp(.82rem, .78rem + .2vw, .9rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.footer-col a { color: #94a3b8; line-height: 1.5; }
.footer-col a:hover { color: #fff; }
.footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 22px 0 26px;
  color: #64748b;
  font-size: clamp(.78rem, .74rem + .2vw, .85rem);
}
.footer-made a { color: #94a3b8; }
.footer-made a:hover { color: #fff; }

/* ---- Reveal on scroll ---- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr 1fr; }
  /* Footer: brand spans the top, link columns share a row below */
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 20px 24px;
    gap: 18px;
    align-items: flex-start;
  }
  .nav-links.open { display: flex; }
  .grid-3, .grid-2, .compare { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-page { border-right: 0; border-bottom: 1px solid var(--border); }
  .hero { padding: 64px 0 48px; }
  .section, .statement, .cta-band { padding: 60px 0; }
  /* Footer: link columns pair up; legal bar stacks centered */
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bar { flex-direction: column; text-align: center; }
}
@media (max-width: 420px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Subpage components (pricing, templates, features, docs, etc.)
   ============================================================ */

/* Small hero for inner pages */
.page-hero { text-align: center; padding: clamp(48px, 8vw, 84px) 0 clamp(28px, 5vw, 48px); }
.page-hero h1 { font-size: clamp(2rem, 5vw, 3rem); }
.page-hero .hero-sub { margin-top: 16px; }

/* Pricing */
.bill-toggle {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 999px; padding: 4px;
  margin: 28px auto 0;
}
.bill-toggle button {
  border: 0; cursor: pointer; background: none;
  padding: 8px 20px; border-radius: 999px;
  font: inherit; font-size: .9rem; font-weight: 600; color: var(--muted);
}
.bill-toggle button.on { background: var(--navy); color: #fff; }
.bill-note { color: #10b981; font-weight: 600; font-size: .85rem; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.plan {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; padding: 26px 22px;
  display: flex; flex-direction: column; gap: 0;
}
.plan-hot { border-color: var(--sky); box-shadow: 0 14px 38px rgba(14,165,233,.14); position: relative; }
.plan-flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--sky); color: #fff; font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 3px 12px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 1.05rem; }
.plan-for { color: var(--muted); font-size: .85rem; min-height: 2.6em; }
.plan-price { font-size: 2.2rem; font-weight: 800; color: var(--navy); margin: 10px 0 2px; }
.plan-price span { font-size: .95rem; font-weight: 500; color: var(--muted); }
.plan-cycle { font-size: .8rem; color: var(--muted); min-height: 1.2em; }
.plan ul { list-style: none; margin: 18px 0 22px; flex: 1; }
.plan ul li {
  padding: 5px 0 5px 26px; position: relative;
  font-size: .9rem; color: var(--text);
}
.plan ul li::before { content: "\2713"; position: absolute; left: 0; color: #10b981; font-weight: 800; }
.plan .btn { text-align: center; }

/* Comparison table */
.table-wrap { overflow-x: auto; margin-top: 48px; }
table.cmp { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
table.cmp th, table.cmp td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--border); }
table.cmp th { color: var(--navy); font-weight: 700; }
table.cmp td:first-child, table.cmp th:first-child { text-align: left; color: var(--text); }
table.cmp .yes { color: #10b981; font-weight: 800; }
table.cmp .no { color: #cbd5e1; }

/* Template gallery */
.filter-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 8px 0 36px; }
.filter-row button {
  border: 1px solid var(--border); background: #fff; cursor: pointer;
  font: inherit; font-size: .85rem; font-weight: 600; color: var(--muted);
  padding: 7px 16px; border-radius: 999px;
  transition: all .15s ease;
}
.filter-row button.on, .filter-row button:hover { border-color: var(--sky); color: var(--sky-dark); background: var(--sky-soft); }
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tpl {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; background: #fff;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.tpl:hover { transform: translateY(-3px); border-color: var(--sky); box-shadow: 0 12px 30px rgba(11,18,32,.08); }
.tpl-thumb { height: 150px; background: var(--bg-alt); border-bottom: 1px solid var(--border); padding: 18px 22px; overflow: hidden; }
.tpl-thumb.dark { background: var(--navy); }
.t-line { height: 9px; border-radius: 4px; background: var(--navy); margin-bottom: 8px; }
.tpl-thumb.dark .t-line { background: #fff; }
.t-line.soft { background: #cbd5e1; height: 6px; }
.tpl-thumb.dark .t-line.soft { background: rgba(255,255,255,.35); }
.t-btn { height: 22px; width: 84px; border-radius: 6px; background: var(--sky); margin-top: 12px; }
.t-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.t-img { height: 64px; border-radius: 8px; background: #cbd5e1; opacity: .7; }
.tpl-meta { padding: 14px 18px; }
.tpl-meta h3 { font-size: .98rem; }
.tpl-meta p { font-size: .85rem; color: var(--muted); }
.tpl-tag { display: inline-block; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--sky-dark); background: var(--sky-soft); border-radius: 999px; padding: 2px 10px; margin-bottom: 8px; }

/* Feature rows with visual side */
.feat-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 44px) 0; }
.feat-row + .feat-row { border-top: 1px solid var(--border); }
.feat-row h3 { font-size: 1.35rem; margin-bottom: 10px; }
.feat-row p { color: var(--muted); }
.feat-row ul { list-style: none; margin-top: 14px; }
.feat-row ul li { padding: 4px 0 4px 26px; position: relative; font-size: .95rem; }
.feat-row ul li::before { content: "\2713"; position: absolute; left: 0; color: #10b981; font-weight: 800; }
.feat-visual {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-alt); min-height: 220px;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; color: var(--muted); font-size: .85rem;
}

/* Steps / numbered list reuse (.row from homepage) */

/* Integrations grid */
.int-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.int {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; padding: 22px 20px; text-align: center;
  transition: transform .15s ease, border-color .15s ease;
}
.int:hover { transform: translateY(-2px); border-color: var(--sky); }
.int-badge {
  width: 46px; height: 46px; border-radius: 12px; margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.05rem; color: #fff;
}
.int h3 { font-size: .95rem; }
.int p { font-size: .8rem; color: var(--muted); }

/* Docs */
.docs-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.doc-card {
  display: block; border: 1px solid var(--border); border-radius: 12px;
  background: #fff; padding: 20px 22px; color: var(--text);
  transition: border-color .15s ease, transform .15s ease;
}
.doc-card:hover { border-color: var(--sky); transform: translateY(-2px); }
.doc-card h3 { font-size: 1rem; }
.doc-card p { font-size: .88rem; color: var(--muted); }
.article { max-width: 720px; margin: 0 auto; }
.article h1 { font-size: clamp(1.7rem, 4vw, 2.3rem); margin-bottom: 10px; }
.article h2 { font-size: 1.25rem; margin: 36px 0 10px; }
.article p, .article li { color: var(--text); font-size: 1rem; }
.article ol, .article ul { padding-left: 22px; margin: 12px 0; }
.article li { margin-bottom: 8px; }
.article code {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: 6px; padding: 1px 7px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em;
}
.article .tip {
  border-left: 3px solid var(--sky); background: var(--sky-soft);
  border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 18px 0;
  font-size: .93rem;
}
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 26px; }
.crumbs a { color: var(--sky-dark); }

/* Role table */
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* Responsive for subpage components */
@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr 1fr; }
  .tpl-grid { grid-template-columns: 1fr 1fr; }
  .int-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .plans { grid-template-columns: 1fr; }
  .tpl-grid { grid-template-columns: 1fr; }
  .int-grid { grid-template-columns: 1fr 1fr; }
  .feat-row { grid-template-columns: 1fr; }
  .docs-list { grid-template-columns: 1fr; }
  .role-grid { grid-template-columns: 1fr; }
}
