/* EazyERP public site. Copy length varies widely across ten languages (German compounds,
   Japanese without spaces), so nothing that holds text has a fixed width or height. */
:root {
  /* Brand: indigo, chosen by the owner 2026-11-02; stays clear of any marketplace's signature colors. */
  --bg: #f8fafc; --surface: #ffffff; --ink: #0f172a; --ink-soft: #334155; --muted: #475569;
  --line: #e2e8f0; --brand: #4f46e5; --brand-dark: #4338ca; --brand-soft: #eef2ff; --brand-glow: 79, 70, 229;
  --tint: #f1f5f9; --dark: #0f172a; --dark-2: #1e293b; --dark-line: #334155; --dark-muted: #94a3b8; --dark-accent: #a5b4fc;
  --ok: #15803d; --ok-bg: #dcfce7; --warn: #92400e; --warn-bg: #fef3c7; --bad: #b91c1c; --bad-bg: #fee2e2;
  --radius: 14px; --shadow: 0 30px 80px -30px rgba(15, 23, 42, .32), 0 8px 24px -12px rgba(15, 23, 42, .16);
  --font-sans: "Inter", "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans", "Noto Sans JP", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-display: var(--font-sans);
  --fs-body: 16px; --fs-small: 14px; --fs-xs: 13px;
  --fs-h1: clamp(38px, 5.4vw, 66px); --fs-h2: clamp(28px, 3.4vw, 42px); --fs-h3: 18px; --fs-lead: clamp(17px, 1.5vw, 19px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 400 var(--fs-body)/1.6 var(--font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* CJK reads better with a sans display face and a little more line height. */
:lang(zh-CN), :lang(ja) { --font-display: var(--font-sans); }
:lang(zh-CN) body, :lang(ja) body { line-height: 1.75; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; overflow-wrap: break-word; }
p { text-wrap: pretty; }
h1, h2 { font-family: var(--font-display); font-weight: 720; letter-spacing: -.028em; text-wrap: balance; }
:lang(zh-CN) :is(h1, h2), :lang(ja) :is(h1, h2) { font-weight: 700; letter-spacing: 0; line-height: 1.3; }
/* Japanese has no spaces: break headings at phrase boundaries where the browser supports it. */
:lang(ja) :is(h1, h2, h3) { word-break: auto-phrase; }
/* Chinese hero titles break only at punctuation, never inside a word. */
:lang(zh-CN) .hero h1 { word-break: keep-all; overflow-wrap: anywhere; }
h1 { font-size: var(--fs-h1); line-height: 1.05; }
h2 { font-size: var(--fs-h2); line-height: 1.12; }
h3 { font-size: var(--fs-h3); line-height: 1.35; font-weight: 650; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
@media (max-width: 640px) { .container { width: calc(100% - 32px); } }

/* Buttons wrap their label instead of overflowing on long translations. */
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: 999px; font: 650 15px/1.25 var(--font-sans); text-align: center; text-decoration: none; white-space: normal; cursor: pointer; transition: background .2s, border-color .2s, color .2s, transform .2s; }
.button:focus-visible, .site-nav a:focus-visible, .text-link:focus-visible, summary:focus-visible, select:focus-visible { outline: 3px solid rgba(var(--brand-glow), .4); outline-offset: 3px; }
.button-brand { color: #fff; background: var(--brand); }
.button-brand:hover { background: var(--brand-dark); }
.button-dark { min-height: 40px; padding: 8px 18px; color: #fff; background: var(--ink); font-size: 14px; }
.button-dark:hover { background: #000; }
.button-ghost { color: var(--ink); border-color: var(--line); background: rgba(255,255,255,.6); }
.button-ghost:hover { border-color: var(--ink); }
.button-light { color: var(--ink); background: #fff; }
.eyebrow { color: var(--brand-dark); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
:lang(zh-CN) .eyebrow, :lang(ja) .eyebrow { letter-spacing: .06em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgba(226, 232, 240, .8); background: rgba(248, 250, 252, .86); backdrop-filter: saturate(1.4) blur(14px); }
.header-row { min-height: 68px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--brand); font: 800 17px/1 var(--font-sans); }
.brand-name { font-weight: 750; font-size: 18px; letter-spacing: -.01em; }
.brand-logo { width: 34px; height: 34px; flex: 0 0 auto; color: var(--brand); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 30; padding: 10px 16px; border-radius: 10px; color: #fff; background: var(--ink); font-weight: 650; text-decoration: none; }
.skip-link:focus { top: 12px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-inline: auto; }
.site-nav a { color: var(--ink-soft); font-size: var(--fs-small); font-weight: 550; text-decoration: none; }
.site-nav a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.site-nav + .header-actions { margin-left: 0; }
.language-picker { position: relative; display: inline-flex; align-items: center; }
.language-picker svg { position: absolute; left: 11px; width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 1.6; pointer-events: none; }
.language-picker select { appearance: none; min-height: 40px; max-width: 150px; padding: 0 28px 0 34px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23475569' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 12px center; font: 550 14px/1 var(--font-sans); cursor: pointer; }
@media (max-width: 900px) { .site-nav { display: none; } .site-nav + .header-actions { margin-left: auto; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 36px; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%; background: radial-gradient(closest-side, rgba(var(--brand-glow), .14), transparent 70%); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 56px; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.lead { max-width: 60ch; color: var(--ink-soft); font-size: var(--fs-lead); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { color: var(--muted); font-size: var(--fs-small); }
.hero-visual { position: relative; min-width: 0; }
.mock-window { border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; transform: perspective(1600px) rotateY(-6deg) rotateX(2deg); transform-origin: left center; }
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #f1f5f9; }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.mock-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 18px 8px; }
.mock-head strong { font-size: 15px; }
.mock-chip { padding: 3px 10px; border-radius: 999px; color: var(--muted); background: #f1f5f9; font-size: 12px; font-weight: 600; }
.mock-list { margin: 0; padding: 4px 10px 10px; list-style: none; }
.mock-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 8px; border-bottom: 1px solid #f1f5f9; }
.mock-list li:last-child { border-bottom: 0; }
.mock-thumb { width: 40px; height: 40px; border-radius: 10px; }
.tone-a { background: linear-gradient(135deg, #fbbf24, #d97706); }
.tone-b { background: linear-gradient(135deg, #475569, #1e293b); }
.tone-c { background: linear-gradient(135deg, #a5b4fc, #4f46e5); }
.mock-text { display: grid; min-width: 0; }
.mock-text b { overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.mock-text small { color: var(--muted); font-size: 12px; }
.mock-badge { max-width: 132px; padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 700; line-height: 1.35; text-align: center; }
.mock-badge.late { color: var(--bad); background: var(--bad-bg); }
.mock-badge.soon { color: var(--warn); background: var(--warn-bg); }
.mock-badge.ok { color: var(--ink-soft); background: #f1f5f9; }
.mock-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 14px 18px 18px; border-top: 1px solid var(--line); background: #f8fafc; }
.mock-step { padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.mock-step.done { color: var(--ok); background: var(--ok-bg); }
.mock-step.brand { color: var(--brand-dark); background: var(--brand-soft); }
.mock-arrow { color: var(--muted); }
.mock-toast { position: absolute; right: -8px; bottom: -22px; display: flex; align-items: center; gap: 8px; max-width: 80%; padding: 10px 14px; border-radius: 12px; color: #fff; background: var(--dark); box-shadow: var(--shadow); font-size: 13px; font-weight: 600; }
.mock-toast .dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-glow), .3); }
.trust-row { margin: 64px 0 0; padding: 18px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; border-top: 1px solid var(--line); list-style: none; color: var(--muted); font-size: var(--fs-small); font-weight: 550; }
.trust-row li { display: inline-flex; align-items: center; gap: 8px; }
.trust-row li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
@media (max-width: 980px) {
  .hero { padding-top: 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .mock-window { transform: none; }
  .mock-toast { right: 12px; }
}

/* Sections */
.section { padding: 104px 0; }
.section-tint { background: var(--tint); }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: 48px; }
.section-lead { color: var(--ink-soft); font-size: var(--fs-lead); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { display: grid; align-content: start; gap: 12px; min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .2s, transform .2s, box-shadow .2s; }
.feature:hover { border-color: #c7d2fe; box-shadow: 0 18px 40px -28px rgba(15, 23, 42, .3); transform: translateY(-2px); }
.feature p, .step p, .security-list p { color: var(--muted); }
.feature-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--brand-soft); }
.feature-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--brand-dark); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.steps { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; counter-reset: step; }
.step { display: grid; align-content: start; gap: 12px; min-width: 0; padding: 28px; border-radius: var(--radius); background: var(--surface); }
.step-num { color: var(--brand); font: 700 28px/1 var(--font-display); letter-spacing: -.02em; }
.section-dark { color: #f1f5f9; background: var(--dark); }
.section-dark .eyebrow { color: var(--dark-accent); }
.section-dark .section-lead, .section-dark .security-list p { color: var(--dark-muted); }
.security-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.security-grid .section-head { margin-bottom: 0; }
.security-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--dark-line); border-radius: var(--radius); background: var(--dark-line); }
.security-list article { display: grid; align-content: start; gap: 10px; min-width: 0; padding: 26px; background: var(--dark-2); }
.text-link { justify-self: start; color: var(--dark-accent); font-weight: 650; text-underline-offset: 4px; }
/* Integration: the marketplace is named in plain text only, with the required API notice. */
.integration-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.integration-grid .section-head { margin-bottom: 0; }
.integration-card { display: grid; gap: 22px; min-width: 0; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.check-list { margin: 0; padding: 0; display: grid; gap: 16px; list-style: none; }
.check-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; color: var(--ink-soft); }
.check-list li::before { content: ""; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%234f46e5' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.trademark-note { padding: 14px 16px; border-left: 3px solid var(--brand); border-radius: 0 10px 10px 0; color: var(--ink-soft); background: var(--tint); font-size: var(--fs-small); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq-grid .section-head { margin-bottom: 0; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 650; list-style: none; cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: 0 0 auto; color: var(--brand); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 22px 20px; color: var(--muted); }
.cta-panel { position: relative; display: grid; justify-items: center; gap: 16px; overflow: hidden; padding: 72px 32px; border-radius: 24px; color: #fff; background: linear-gradient(135deg, #0f172a, #1e293b); text-align: center; }
.cta-panel::after { content: ""; position: absolute; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(closest-side, rgba(var(--brand-glow), .38), transparent 70%); pointer-events: none; }
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel p { max-width: 56ch; color: var(--dark-muted); font-size: var(--fs-lead); }
.cta-panel .cta-row { justify-content: center; }
@media (max-width: 980px) {
  .section { padding: 80px 0; }
  .feature-grid, .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .security-grid, .faq-grid, .integration-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .feature-grid, .steps, .security-list { grid-template-columns: minmax(0, 1fr); }
  .feature, .step, .security-list article, .integration-card { padding: 22px; }
  .cta-row .button { flex: 1 1 100%; }
  .cta-panel { padding: 52px 22px; }
  .header-row { gap: 12px; }
  .brand-name { font-size: 17px; }
  .language-picker select { max-width: 124px; }
}
/* Narrow phones: the header keeps the logo mark only, so the language menu and the
   sign-in button never press against the screen edge in long languages. */
@media (max-width: 420px) {
  .site-header .brand-name { display: none; }
  .header-actions { gap: 8px; }
  .button-dark { padding-inline: 14px; }
}

/* Footer */
.site-footer { padding: 64px 0 40px; border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
.footer-grid nav { display: grid; align-content: start; gap: 10px; }
.footer-grid h4 { margin-bottom: 4px; color: var(--muted); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.footer-grid nav a { color: var(--ink-soft); font-size: var(--fs-small); text-decoration: none; }
.footer-grid nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-tagline { max-width: 44ch; text-wrap: pretty; margin-top: 14px; color: var(--muted); font-size: var(--fs-small); }
.footer-bottom { display: grid; gap: 8px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-xs); }
.disclaimer { max-width: 90ch; }
@media (max-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* Legal pages */
.legal { padding: 64px 0 96px; }
.legal-card { max-width: 820px; margin-inline: auto; padding: 48px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.legal-card h1 { font-size: clamp(32px, 4vw, 44px); }
.legal-meta { margin: 12px 0 28px; color: var(--muted); font-size: var(--fs-small); }
.legal-card h2 { margin: 36px 0 12px; font-size: 22px; }
.legal-card p, .legal-card li { color: var(--ink-soft); }
.legal-card p + p { margin-top: 12px; }
.legal-card ul { margin: 12px 0; padding-left: 22px; }
.legal-card li + li { margin-top: 6px; }
.legal-note { margin-bottom: 8px; padding: 12px 16px; border-radius: 10px; color: var(--ink-soft); background: var(--tint); font-size: var(--fs-small); }
@media (max-width: 640px) { .legal-card { padding: 28px 20px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } .mock-window { transform: none; } }
