/* ══════════════════════════════════════════════
   Oceanz ERP — public site (landing, pricing, docs)
   Minimal dark / light theme. Toggle sets html[data-theme].
══════════════════════════════════════════════ */
:root, :root[data-theme="dark"] {
    --bg: #060a14;
    --bg-2: #0a1020;
    --surface: #0c1222;
    --surface-2: #111a2e;
    --border: rgba(255,255,255,.09);
    --border-strong: rgba(255,255,255,.16);
    --text: #e8ebf1;
    --muted: #98a2b3;
    --faint: #6b7588;
    --primary-bg: #ffffff;
    --primary-fg: #0a0f1c;
    --accent: #1e90ff;
    --glow: rgba(14, 116, 218, .28);
    --glow-2: rgba(16, 150, 160, .14);
    --ok: #22c55e;
    --shadow: 0 1px 0 rgba(255,255,255,.04) inset;
}
:root[data-theme="light"] {
    --bg: #f6f7fb;
    --bg-2: #eef1f7;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --border: #e4e7ee;
    --border-strong: #d3d8e2;
    --text: #0b1220;
    --muted: #5b6577;
    --faint: #8a93a5;
    --primary-bg: #0b1220;
    --primary-fg: #ffffff;
    --accent: #0a6fd6;
    --glow: rgba(10, 126, 232, .14);
    --glow-2: rgba(16, 150, 160, .08);
    --shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.55;
    -webkit-font-smoothing: antialiased; transition: background .2s, color .2s;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
.wrap { max-width: 1216px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.logo-for-light { display: none; }
:root[data-theme="light"] .logo-for-dark { display: none; }
:root[data-theme="light"] .logo-for-light { display: block; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
    border-radius: 9px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; border: 1px solid transparent;
    transition: background .15s, border-color .15s, opacity .15s; white-space: nowrap; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-primary { background: var(--primary-bg); color: var(--primary-fg); }
.btn-primary:hover { opacity: .9; }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface); }
.btn-icon { width: 40px; padding: 0; }
.btn-block { width: 100%; }

/* ── Header ── */
.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--border); }
.site-header .wrap { height: 66px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 38px; width: auto; display: block; }
.brand img.logo-for-light { display: none; }
:root[data-theme="light"] .brand img.logo-for-dark { display: none; }
:root[data-theme="light"] .brand img.logo-for-light { display: block; }
.brand .sub { border-left: 1px solid var(--border-strong); padding-left: 12px; line-height: 1.2; }
.brand .sub b { display: block; font-size: 13.5px; }
.brand .sub span { font-size: 12px; color: var(--muted); }
.site-nav { display: flex; gap: 30px; margin: 0 auto; }
.site-nav a { font-size: 14.5px; color: var(--muted); font-weight: 500; transition: color .15s; }
.site-nav a:hover, .site-nav a.active { color: var(--text); }
.header-actions { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; padding: 84px 0 72px; }
.hero::before { content: ''; position: absolute; width: 900px; height: 700px; left: -160px; top: -260px; pointer-events: none;
    background: radial-gradient(closest-side, var(--glow), transparent 70%); }
.hero::after { content: ''; position: absolute; width: 700px; height: 600px; left: 220px; top: -200px; pointer-events: none;
    background: radial-gradient(closest-side, var(--glow-2), transparent 70%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.badge-pill { display: inline-flex; align-items: center; gap: 9px; padding: 6px 14px; border: 1px solid var(--border-strong);
    border-radius: 30px; font-size: 13px; color: var(--text); background: color-mix(in srgb, var(--surface) 70%, transparent); margin-top: 20px; }
.badge-pill i.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.hero h1 { font-size: clamp(36px, 4.6vw, 52px); line-height: 1.08; letter-spacing: -.035em; font-weight: 700; margin: 24px 0 18px; }
.hero .lead { font-size: 18px; color: var(--muted); max-width: 640px; }
.hero .actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 34px; }
.value { border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 75%, transparent); border-radius: 12px; padding: 18px; }
.value b { font-size: 14.5px; display: block; margin-bottom: 4px; }
.value span { font-size: 13px; color: var(--muted); }

/* Snapshot card */
.panel { border: 1px solid var(--border); background: var(--surface); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.panel h3 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.snap-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--border);
    border-radius: 10px; margin-bottom: 12px; background: var(--bg-2); font-size: 14px; }
.snap-row b { font-weight: 600; }
.snap-row .price { color: var(--muted); }
.snap-row .price strong { color: var(--text); }
.snap-row .tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 20px; background: var(--primary-bg); color: var(--primary-fg); margin-left: 8px; }
.panel .note { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.panel .methods { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.panel .methods span { font-size: 12px; border: 1px solid var(--border); border-radius: 20px; padding: 4px 10px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }

/* ── Sections ── */
section.block { padding: 72px 0; }
.sec-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-row h2, .sec-center h2 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; letter-spacing: -.02em; }
.sec-row p, .sec-center p { color: var(--muted); font-size: 16px; margin-top: 6px; }
.sec-center { text-align: center; margin-bottom: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card { border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 22px; box-shadow: var(--shadow); }
.card h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.card h4 .ic { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center;
    font-size: 13px; color: var(--accent); background: var(--bg-2); }
.card p { color: var(--muted); font-size: 14px; }
.card ul.list { list-style: none; margin-top: 14px; display: grid; gap: 8px; font-size: 14px; }
.card ul.list li { display: flex; gap: 10px; color: var(--muted); }
.card ul.list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); margin-top: 9px; flex-shrink: 0; }

/* Steps */
.steps { display: grid; gap: 10px; margin-top: 16px; }
.step { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.step i { width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--border-strong); font-style: normal; font-size: 12px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step span { color: var(--muted); }
.step b { color: var(--text); font-weight: 600; }

/* Mini document */
.doc-mini { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; margin-top: 16px; background: #fff; color: #1b2333; font-size: 10.5px; }
.doc-mini .h { background: #14223e; display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.doc-mini .h img { height: 18px; } .doc-mini .h b { color: #5aa9e0; font-size: 13px; } .doc-mini .h small { color: #fff; display: block; font-weight: 700; font-size: 9px; }
.doc-mini .b { padding: 10px 14px; }
.doc-mini .th { display: grid; grid-template-columns: 2fr .5fr 1fr; background: #5aa9e0; color: #fff; font-weight: 700; padding: 6px 8px; }
.doc-mini .tr { display: grid; grid-template-columns: 2fr .5fr 1fr; padding: 4px 8px; font-weight: 600; }
.doc-mini .tot { text-align: right; margin-top: 6px; } .doc-mini .tot span { background: #5aa9e0; color: #14223e; font-weight: 800; padding: 3px 12px; }
.doc-mini .f { background: #14223e; color: #5aa9e0; text-align: center; font-weight: 700; padding: 7px; font-size: 10px; }

/* ── Pricing ── */
.cycle { display: inline-flex; border: 1px solid var(--border-strong); border-radius: 10px; padding: 3px; margin-top: 18px; background: var(--surface); }
.cycle button { border: none; background: none; color: var(--muted); font: inherit; font-size: 13.5px; font-weight: 600; padding: 7px 16px; border-radius: 7px; cursor: pointer; }
.cycle button.on { background: var(--primary-bg); color: var(--primary-fg); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan { border: 1px solid var(--border); background: var(--surface); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.plan.featured { border-color: var(--border-strong); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.plan .pop { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: var(--primary-bg); color: var(--primary-fg); margin-bottom: 10px; }
.plan h4 { font-size: 15px; font-weight: 700; }
.plan .tagline { color: var(--muted); font-size: 13.5px; margin-top: 2px; min-height: 40px; }
.plan .amount { font-size: 34px; font-weight: 700; letter-spacing: -.03em; margin: 14px 0 2px; }
.plan .amount small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .trial { font-size: 12.5px; color: var(--muted); }
.plan ul { list-style: none; display: grid; gap: 9px; font-size: 14px; margin: 20px 0 24px; flex: 1; }
.plan li { display: flex; gap: 10px; color: var(--muted); }
.plan li i { color: var(--ok); font-size: 12px; margin-top: 4px; }

/* Comparison table */
.table-card { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.table-card .scroll { overflow-x: auto; }
.table-card table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 620px; }
.table-card th { text-align: center; padding: 14px; font-size: 13px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.table-card td { text-align: center; padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--muted); }
.table-card th:first-child, .table-card td:first-child { text-align: left; color: var(--text); }
.table-card tr:last-child td { border-bottom: none; }
.table-card .yes { color: var(--ok); }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; margin: 0 auto; }
.faq details { border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 0 20px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--muted); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); padding-bottom: 18px; font-size: 14.5px; }

/* CTA + footer */
.cta-bar { border: 1px solid var(--border); background: var(--surface); border-radius: 14px; padding: 24px 26px; display: flex; justify-content: space-between;
    align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-bar b { font-size: 16px; display: block; }
.cta-bar span { color: var(--muted); font-size: 14.5px; }
.cta-bar .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.site-footer { border-top: 1px solid var(--border); margin-top: 56px; padding: 28px 0; font-size: 13.5px; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; }
.site-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a:hover { color: var(--text); }
.site-footer .contact { width: 100%; display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--faint); }

/* Docs */
.docs-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; padding: 48px 0; }
.docs-nav { position: sticky; top: 90px; align-self: start; display: grid; gap: 2px; }
.docs-nav b { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--faint); margin: 14px 0 6px; }
.docs-nav a { font-size: 14px; color: var(--muted); padding: 6px 10px; border-radius: 7px; }
.docs-nav a:hover { background: var(--surface); color: var(--text); }
.prose h1 { font-size: 34px; letter-spacing: -.03em; margin-bottom: 8px; }
.prose h2 { font-size: 21px; margin: 40px 0 10px; padding-top: 12px; letter-spacing: -.01em; scroll-margin-top: 80px; }
.prose p, .prose li { color: var(--muted); font-size: 15px; }
.prose p { margin: 10px 0; }
.prose ol, .prose ul { margin: 10px 0 10px 20px; display: grid; gap: 6px; }
.prose strong { color: var(--text); }
.prose code { font-family: ui-monospace, Consolas, monospace; font-size: 13px; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; color: var(--text); }
.prose .callout { border: 1px solid var(--border); background: var(--surface); border-radius: 12px; padding: 16px 18px; margin: 16px 0; font-size: 14.5px; color: var(--muted); }

/* ── Auth forms (login / register) ── */
.auth-wrap { position: relative; overflow: hidden; padding: 64px 0 40px; }
.auth-wrap::before { content: ''; position: absolute; width: 900px; height: 700px; left: 50%; top: -360px; transform: translateX(-50%);
    background: radial-gradient(closest-side, var(--glow), transparent 70%); pointer-events: none; }
.auth-panel { position: relative; max-width: 440px; margin: 0 auto; }
.auth-panel.wide { max-width: 920px; }
.auth-panel h1 { font-size: 28px; letter-spacing: -.03em; text-align: center; }
.auth-panel .intro { color: var(--muted); text-align: center; margin: 6px 0 24px; }
.form-group { margin-bottom: 16px; }
.form-group label, .label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.req { color: #ef4444; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; height: 42px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--border-strong);
    background: var(--bg-2); color: var(--text); font: inherit; font-size: 14.5px; transition: border-color .15s, box-shadow .15s; }
.form-group input:focus, .form-group select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.field-error { font-size: 12.5px; color: #f87171; margin-top: 5px; }
.is-invalid { border-color: #ef4444 !important; }
label.check { display: inline-flex; gap: 9px; align-items: center; font-size: 14px; color: var(--muted); cursor: pointer; font-weight: 500; }
label.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.flash { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: 14px; display: flex; gap: 10px; }
.flash-error { border-color: rgba(239,68,68,.5); } .flash-error i { color: #f87171; }
.flash-success i { color: var(--ok); } .flash ul { margin-left: 18px; } .flash button { margin-left: auto; background: none; border: none; color: var(--muted); cursor: pointer; font-size: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.plan-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plan-pick label { position: relative; border: 1px solid var(--border-strong); border-radius: 12px; padding: 14px; cursor: pointer; background: var(--bg-2); display: block; }
.plan-pick input { position: absolute; opacity: 0; }
.plan-pick label:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.plan-pick b { display: block; font-size: 15px; } .plan-pick span { font-size: 12.5px; color: var(--muted); display: block; }
.auth-foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 18px; }
.auth-foot a { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ── Responsive ── */
@media (max-width: 1080px) {
    .hero .wrap { grid-template-columns: minmax(0, 1fr); }
    .plans, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
    .site-nav { display: none; }
    .site-nav.open { display: grid; position: absolute; top: 66px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border);
        padding: 14px 24px 20px; gap: 14px; margin: 0; }
    .menu-btn { display: inline-flex; }
    .header-actions .hide-sm { display: none; }
    .brand .sub { display: none; }
    .site-header .wrap { justify-content: space-between; }
    .header-actions { margin-left: auto; }
    .values, .grid-2, .form-grid, .plan-pick { grid-template-columns: minmax(0, 1fr); }
    .docs-layout { grid-template-columns: minmax(0, 1fr); }
    .docs-nav { position: static; display: flex; flex-wrap: wrap; }
    .docs-nav b { width: 100%; }
}
@media (max-width: 600px) {
    .wrap { padding: 0 16px; }
    .plans, .grid-3 { grid-template-columns: minmax(0, 1fr); }
    .hero { padding: 48px 0 40px; }
    section.block { padding: 52px 0; }
    .snap-row { flex-direction: column; align-items: flex-start; gap: 4px; }
}
