/* CrossUpload — marketing site, docs, dashboard, phone page. Plain CSS. */
:root {
  /* Warm paper, ink, forest green, a single lime highlight. */
  --brand: #1f4d3a; --brand-d: #163a2b; --ink: #141413; --ink2: #3b3a36; --muted: #6f6c64; --line: #e2ddd2;
  --bg: #f4f1ea; --surface: #fffdf8; --soft: #ece7dc; --soft2: #e7eedf; --mark: #d9f06b;
  --ok: #2f6b3b; --okbg: #edf3e4; --bad: #a3301e; --badbg: #f8e9e4; --warn: #8a5a00; --warnbg: #f7efd9;
  --r: 6px; --shadow: none;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.6 var(--font); color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-d); }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.8vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--mono); font-size: .9em; }
code { background: var(--soft); border: 1px solid var(--line); border-radius: 4px; padding: .05em .35em; }
pre { background: #1b1b19; color: #ece7dc; border-radius: 10px; padding: 16px 18px; overflow-x: auto; line-height: 1.5; font-size: 13.5px; }
pre code { background: none; border: 0; padding: 0; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; box-shadow: 0 0 0 5px var(--mark); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 5; background: rgba(244,241,234,.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--ink); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 750; color: var(--ink); text-decoration: none; font-size: 1.08rem; }
.logo svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--ink2); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-size: .95rem; }
.nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--mark); border-radius: 0; }
.nav .btn { margin-left: 6px; }
.menu-toggle { display: none; }
@media (max-width: 920px) {
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 10px 20px 16px; }
  .nav.open { display: flex; }
  .menu-toggle { display: inline-flex; border: 1px solid var(--ink); background: var(--surface); border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 4px; font-weight: 620; text-decoration: none; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 620; line-height: 1.2; }
.btn-primary { background: var(--ink); color: var(--bg) !important; border-color: var(--ink); }
.btn-primary:hover { background: var(--brand); border-color: var(--brand); }
.btn-ghost { background: transparent; color: var(--ink) !important; border-color: var(--ink); }
.btn-ghost:hover { background: var(--mark); }
.btn-danger { background: transparent; color: var(--bad) !important; border-color: #fecaca; }
.btn-sm { padding: 6px 12px; font-size: .875rem; }
.btn-lg { padding: 13px 22px; font-size: 1.05rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* Sections */
.hero { padding: 80px 0 64px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow { display: inline-block; font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); background: var(--mark); padding: 3px 8px; margin-bottom: 18px; }
.lead { font-size: 1.18rem; color: var(--ink2); max-width: 40em; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 10px; }
.section { padding: 72px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.section.alt .card { background: var(--bg); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }
a.card { color: inherit; text-decoration: none; display: block; transition: border-color .15s, box-shadow .15s; }
a.card:hover { border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
@media (prefers-reduced-motion: reduce) { a.card { transition: none; } * { scroll-behavior: auto !important; } }
.icon, .idx { display: block; font-family: var(--mono); font-size: .8rem; color: var(--muted); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.steps { counter-reset: step; display: grid; gap: 16px; }
.step { position: relative; padding-left: 56px; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; left: 0; top: 2px; font-family: var(--mono); font-size: .85rem; color: var(--ink); background: var(--mark); padding: 2px 6px; }
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.compare th, .compare td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { background: var(--soft); font-size: .9rem; }
.check { color: var(--ok); font-weight: 700; }
.cross { color: var(--bad); font-weight: 700; }
.pill { display: inline-block; font-size: .78rem; padding: 2px 8px; border-radius: 3px; background: var(--soft); border: 1px solid var(--line); color: var(--ink2); }
.pill.ok { background: var(--okbg); color: var(--ok); border-color: #c9dbb5; }
.pill.bad { background: var(--badbg); color: var(--bad); border-color: #ebc3b8; }
.pill.warn { background: var(--warnbg); color: var(--warn); border-color: #e8d39c; }
.pill.info { background: var(--mark); color: var(--ink); border-color: var(--ink); }
.callout { border-left: 3px solid var(--ink); background: var(--surface); padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 1.2em 0; }
.callout.warn { border-color: var(--warn); background: var(--warnbg); }
.faq details { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 16px 2px; margin: 0; background: transparent; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 620; }
.faq details[open] summary { margin-bottom: 8px; }
.breadcrumbs { font-size: .875rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumbs a { color: var(--muted); }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.stat { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--ink); }

/* Hero mock */
.mock { background: var(--surface); border: 1px solid var(--ink); border-radius: 8px; box-shadow: 8px 8px 0 var(--ink); padding: 18px; }
.mock-bar { display: flex; gap: 6px; margin-bottom: 14px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mock-box { border: 1px solid var(--line); border-radius: 10px; padding: 14px; min-height: 150px; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; text-align: center; font-size: .9rem; }
.mock-box.dashed { border: 2px dashed var(--line); }
.mock-file { margin-top: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; justify-content: space-between; font-size: .9rem; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1020px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } }
.plan { border: 1px solid var(--line); border-radius: var(--r); padding: 22px; background: var(--surface); display: flex; flex-direction: column; gap: 12px; }
.plan.featured { border-color: var(--ink); box-shadow: 6px 6px 0 var(--mark), 6px 6px 0 1px var(--ink); }
.plan .price { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .95rem; }
.plan li::before { content: "— "; color: var(--muted); }

/* Footer */
.site-foot { border-top: 1px solid var(--ink); background: var(--bg); padding: 48px 0 28px; margin-top: 0; font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px; }
@media (max-width: 920px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.site-foot h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-foot a { color: var(--ink2); text-decoration: none; }
.site-foot a:hover { color: var(--brand); text-decoration: underline; }
.foot-bottom { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); }
.uae { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink2); }

/* Forms */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label, .label { font-weight: 600; font-size: .92rem; }
.field .hint { font-size: .83rem; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], select, textarea {
  font: inherit; padding: 10px 12px; border: 1px solid #c9c3b6; border-radius: 4px; background: var(--surface); color: var(--ink); width: 100%;
}
textarea { min-height: 90px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; }
.checks label { font-weight: 400; display: flex; gap: 8px; align-items: center; }
.auth { max-width: 420px; margin: 56px auto; }
.alert { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--soft); margin-bottom: 14px; }
.alert.err { background: var(--badbg); border-color: #ebc3b8; color: var(--bad); }
.alert.ok { background: var(--okbg); border-color: #c9dbb5; color: var(--ok); }
.alert.warn { background: var(--warnbg); border-color: #e8d39c; color: var(--warn); }
.secret { font-family: var(--mono); background: #1b1b19; color: var(--mark); padding: 12px 14px; border-radius: 10px; word-break: break-all; }

/* Dashboard */
.dash { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 64px); }
@media (max-width: 860px) { .dash { grid-template-columns: 1fr; } .side { border-right: 0 !important; border-bottom: 1px solid var(--line); } }
.side { border-right: 1px solid var(--line); background: var(--soft); padding: 18px 12px; }
.side a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink2); text-decoration: none; font-size: .95rem; }
.side a[aria-current="page"], .side a:hover { background: var(--surface); color: var(--ink); box-shadow: inset 3px 0 0 var(--ink); border-radius: 0; }
.side .acct { font-size: .8rem; color: var(--muted); padding: 0 12px 12px; }
.main { padding: 28px 32px 60px; min-width: 0; }
@media (max-width: 620px) { .main { padding: 20px 16px; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table.t { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.t th, table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.t th { background: var(--soft); font-weight: 600; font-size: .85rem; color: var(--ink2); white-space: nowrap; }
table.t tr:last-child td { border-bottom: 0; }
.meter { height: 8px; background: var(--line); border-radius: 6px; overflow: hidden; margin: 8px 0 4px; }
.meter > i { display: block; height: 100%; background: var(--brand); }
.meter.hot > i { background: #c98a00; }
.meter.full > i { background: var(--bad); }
.kpi { font-family: var(--serif); font-size: 1.75rem; font-weight: 700; }
.toolbar { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .field { min-width: 140px; }
.inline { display: inline; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Phone page */
.ph { max-width: 520px; margin: 0 auto; padding: 18px 16px 40px; }
.ph h1 { font-size: 1.5rem; margin: 2px 0 4px; }
.ph-card { border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin-bottom: 12px; background: var(--surface); }
.ph-muted { color: var(--muted); margin: 0; }
.ph-small { font-size: .88rem; margin: 4px 0 0; }
.ph-strong { font-weight: 650; font-size: 1.1rem; }
.ph-big { font-size: 46px; margin: 0; }
.ph-ok { color: var(--ok); }
.ph-center { text-align: center; }
.ph-row { display: flex; gap: 10px; flex-wrap: wrap; }
.ph-btn { display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; padding: 14px 18px; font: inherit; font-weight: 650; background: var(--ink); color: var(--bg); cursor: pointer; flex: 1; min-height: 50px; }
.ph-btn.ph-ghost { background: var(--surface); color: var(--ink); border: 1.5px solid var(--ink); }
.ph-btn.ph-sm { padding: 8px 12px; min-height: 0; flex: 0; font-size: .9rem; margin-top: 6px; }
.ph-btn[disabled] { opacity: .5; }
.ph-send { width: 100%; margin-top: 8px; font-size: 1.1rem; }
.ph-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.ph-list { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.ph-item { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); padding: 10px 12px; }
.ph-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ph-ready .ph-small { color: var(--ok); }
.ph-rejected .ph-small, .ph-failed .ph-small, .ph-invalid .ph-small { color: var(--bad); }
.ph-bar { height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 8px; }
.ph-bar > i { display: block; height: 100%; background: var(--brand); }
.ph-bar.ph-indet > i { width: 40%; animation: phind 1.1s infinite linear; }
@keyframes phind { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .ph-bar.ph-indet > i { animation: none; width: 100%; opacity: .5; } }
.ph-link { background: none; border: 0; color: var(--bad); font: inherit; text-decoration: underline; padding: 4px 0; cursor: pointer; }

/* Docs */
.docs-grid { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding-top: 32px; padding-bottom: 64px; }
.docs-nav { position: sticky; top: 84px; align-self: start; }
@media (max-width: 860px) { .docs-grid { grid-template-columns: 1fr; } .docs-nav { position: static; } }

/* Editorial touches */
.lead { color: var(--ink2); }
.hero h1 { max-width: 15em; }
.section-head h2 { max-width: 20em; }
::selection { background: var(--mark); color: var(--ink); }
.uae { font-family: var(--mono); font-size: .85rem; }
.logo { font-family: var(--serif); font-size: 1.2rem; letter-spacing: -0.01em; }
