/* Distrinote test site -- Style A: blue/white corporate B2B */
:root {
  --blue: #1668dc;
  --blue-dark: #0f4fb8;
  --blue-light: #e8f1fd;
  --navy: #0a2540;
  --ink: #1f2d3d;
  --muted: #5b6b7f;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --line: #e3eaf3;
  --danger: #d64545;
  --radius: 12px;
  --shadow: 0 6px 24px rgba(16, 60, 130, 0.08);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--navy); line-height: 1.3; margin-top: 0; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.mt { margin-top: 1.5rem; }
.lead { font-size: 1.12rem; }

/* ---------- navbar ---------- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(16, 60, 130, 0.05);
}
.nav-inner {
  display: flex; align-items: center; gap: 24px;
  padding-top: 12px; padding-bottom: 12px;
}
.brand img { display: block; height: 100px; width: auto; }
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.nav-links > a { white-space: nowrap; flex-shrink: 0; }
.nav-links > a:not(.btn) { color: var(--ink); font-weight: 500; font-size: 19px; }
.nav-links > a:not(.btn):hover { color: var(--blue); text-decoration: none; }
.lang-toggle { color: var(--muted); font-size: 17px; white-space: nowrap; }
.lang-toggle a { color: var(--muted); }
.lang-toggle a.active { color: var(--blue); font-weight: 700; }
.lang-toggle .sep { margin: 0 6px; }
.nav-toggle { display: none; margin-left: auto; font-size: 1.6rem; background: none; border: none; color: var(--navy); cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 10px 22px; border-radius: 8px;
  font-weight: 600; font-size: 0.95rem; cursor: pointer;
  border: 1px solid transparent; text-align: center;
}
.btn:hover { text-decoration: none; }
.btn-solid { background: var(--blue); color: #fff; }
.btn-solid:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-light); color: var(--blue); }
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-danger { background: #fff; color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: #fff; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ---------- hero / sections ---------- */
.hero {
  background: linear-gradient(180deg, var(--blue-light) 0%, #fff 100%);
  padding: 64px 0 48px;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 2.6rem; margin-bottom: 16px; }
.hero-sub { font-size: 1.15rem; color: var(--muted); margin-bottom: 28px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.center-row { justify-content: center; }

.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { text-align: center; font-size: 1.9rem; margin-bottom: 8px; }
.section-sub { text-align: center; color: var(--muted); margin: 0 auto 32px; max-width: 680px; }

.page-head { background: linear-gradient(180deg, var(--blue-light), #fff); padding: 48px 0 32px; text-align: center; }
.page-head h1 { font-size: 2.2rem; margin-bottom: 8px; }
.page-head p { color: var(--muted); max-width: 640px; margin: 0 auto; }

/* ---------- cards & grids ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.card p { margin: 8px 0 0; color: var(--muted); }
.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: 20px; }

/* ---------- home extras ---------- */
.testi-card .quote { color: var(--ink); font-style: italic; }
.testi-person { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.testi-person img { border-radius: 50%; }
.cta-band { background: var(--navy); color: #fff; }
.cta-band h2 { color: #fff; margin-bottom: 24px; }
.cta-band .btn-outline { background: transparent; color: #fff; border-color: #fff; }
.cta-band .btn-outline:hover { background: rgba(255,255,255,0.12); color: #fff; }

/* ---------- products ---------- */
.module-title { font-size: 1.7rem; margin-bottom: 4px; }
.module-tagline { color: var(--blue); font-weight: 600; margin-bottom: 20px; }
.module-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.module-imgs img { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); }
.bullet-row { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.bullet-row li { background: var(--blue-light); color: var(--navy); border-radius: 999px; padding: 6px 16px; font-size: 0.9rem; font-weight: 500; }

/* ---------- pricing ---------- */
.billing-toggle { display: inline-flex; margin-top: 20px; border: 1px solid var(--blue); border-radius: 999px; overflow: hidden; }
.toggle-btn { border: none; background: #fff; color: var(--blue); padding: 10px 28px; font-size: 0.95rem; font-weight: 600; cursor: pointer; }
.toggle-btn.active { background: var(--blue); color: #fff; }
.plan-card { display: flex; flex-direction: column; }
.plan-tagline { min-height: 4.8em; }
html[lang="en"] .plan-tagline { min-height: 8em; }
.plan-price { margin: 12px 0 4px; min-height: 4.6rem; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; align-content: flex-start; }
.plan-price .amount { font-size: 2.4rem; font-weight: 800; color: var(--navy); }
.plan-price .per { color: var(--muted); white-space: nowrap; }
.plan-price .plan-promo { flex: 0 0 100%; }
.plan-ctas { display: grid; gap: 10px; margin: 16px 0; }
.plan-ctas form { margin: 0; }
.check-list { list-style: none; padding: 0; margin: 12px 0 0; }
.check-list li { padding: 6px 0 6px 28px; position: relative; font-size: 0.95rem; }
.check-list li::before { content: "\2713"; color: var(--blue); font-weight: 700; position: absolute; left: 4px; }
.notice {
  background: #fff8e6; border: 1px solid #f0d97a; color: #7a5b00;
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 28px;
}

/* ---------- about ---------- */
.banner-img { width: 100%; border-radius: var(--radius); margin-bottom: 28px; box-shadow: var(--shadow); }
.about-block { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.about-block.flip .about-text { order: 2; }
.about-block.flip img { order: 1; }
.about-block img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- auth / account ---------- */
.auth-card { max-width: 480px; margin: 0 auto; }
.auth-card h1 { font-size: 1.6rem; }
form label { display: block; margin: 14px 0 6px; font-weight: 600; font-size: 0.92rem; }
form input[type="email"], form input[type="password"], form input[type="text"], form input[type="tel"] {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 1rem; margin-top: 6px;
}
form input:focus { outline: 2px solid var(--blue-light); border-color: var(--blue); }
form .btn-block { margin-top: 20px; }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 10px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: 0.92rem; }
.kv dd { margin: 0; font-weight: 600; }

/* ---------- flashes / results ---------- */
.flashes { padding-top: 16px; }
.flash { border-radius: 8px; padding: 12px 18px; margin-bottom: 10px; font-size: 0.95rem; }
.flash-error { background: #fdecec; color: #a02a2a; border: 1px solid #f5c2c2; }
.flash-warn { background: #fff8e6; color: #7a5b00; border: 1px solid #f0d97a; }
.flash-ok { background: #e9f7ef; color: #1d6b3c; border: 1px solid #bfe6cd; }
.result-icon { font-size: 3rem; width: 84px; height: 84px; line-height: 84px; border-radius: 50%; margin: 8px auto 16px; }
.result-icon.ok { background: #e9f7ef; color: #1d6b3c; }
.result-icon.bad { background: #fdecec; color: #a02a2a; }

/* ---------- legal ---------- */
.legal p { margin-bottom: 1em; }
.legal h3 { margin: 1.6em 0 0.7em; font-size: 1.15em; }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: #c9d6e8; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; padding: 48px 24px 32px; }
.footer h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 8px; font-size: 0.92rem; }
.footer a { color: #c9d6e8; }
.footer a:hover { color: #fff; }
.footer-brand p { font-size: 0.9rem; margin-top: 12px; }
.footer-brand img { background: #fff; border-radius: 6px; padding: 4px 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding: 16px 0; font-size: 0.85rem; text-align: center; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 2rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .module-imgs { grid-template-columns: 1fr; }
  .about-block, .about-block.flip { grid-template-columns: 1fr; }
  .about-block.flip .about-text { order: 1; }
  .about-block.flip img { order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 24px 20px; border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(16,60,130,0.10); gap: 12px;
  }
  .nav-links.open { display: flex; }
  .nav-inner { position: relative; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 1.7rem; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
}

/* ---------- account center ---------- */
.account-grid { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
.account-sidebar { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.account-sidebar nav a { display: block; padding: 12px 16px; border-radius: 8px; color: var(--ink); font-size: 0.95rem; }
.account-sidebar nav a:hover { background: #f4f7fb; }
.account-sidebar nav a.active { color: var(--blue); font-weight: 700; border-left: 3px solid var(--blue); border-radius: 0 8px 8px 0; }
.account-content { padding: 32px; }
.account-content h2 { margin-top: 0; margin-bottom: 24px; font-size: 1.4rem; }
.account-form .form-row { display: grid; grid-template-columns: 160px 1fr; gap: 16px; align-items: center; margin-bottom: 20px; max-width: 560px; }
.account-form .form-row label { font-weight: 600; font-size: 0.95rem; color: var(--muted); margin: 0; }
.account-form .form-row input { margin-top: 0; }
.account-form .form-row input:disabled { background: #f4f6f9; color: var(--muted); }
.avatar-lg { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; border: 2px dashed var(--line); background: #f8fafc; }
.invoice-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.invoice-table th, .invoice-table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); }
.invoice-table th { color: var(--muted); font-weight: 600; }

/* ---------- header user menu ---------- */
.user-menu { position: relative; }
.user-menu-toggle { display: flex; align-items: center; gap: 10px; background: none; border: none; cursor: pointer; padding: 6px 4px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.user-menu-name { font-weight: 600; font-size: 18px; color: var(--ink); }
.user-menu-dropdown { display: none; position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,0.10); min-width: 190px; padding: 8px; z-index: 50; }
.user-menu-dropdown.open { display: block; }
.user-menu-dropdown a { display: block; padding: 10px 14px; border-radius: 6px; color: var(--ink); font-size: 0.93rem; }
.user-menu-dropdown a:hover { background: #f4f7fb; }

@media (max-width: 760px) {
  .account-grid { grid-template-columns: 1fr; }
  .account-sidebar nav { display: flex; overflow-x: auto; gap: 4px; }
  .account-sidebar nav a { white-space: nowrap; border-left: none; }
  .account-sidebar nav a.active { border-left: none; border-bottom: 3px solid var(--blue); border-radius: 8px 8px 0 0; }
  .account-form .form-row { grid-template-columns: 1fr; gap: 6px; }
  .user-menu-name { display: none; }
}

.otp-field { margin-bottom: 16px; }
.otp-field label { display: block; font-size: 0.9rem; color: #334155; margin-bottom: 6px; font-weight: 500; }
.otp-field input, .otp-field textarea { width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 1rem; box-sizing: border-box; }
.otp-field input:focus, .otp-field textarea:focus { outline: none; border-color: var(--blue, #2563eb); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.otp-msg { min-height: 1.4em; font-size: 0.88rem; color: #dc2626; margin: 8px 0; }
.otp-msg.ok { color: #16a34a; }

.trial-banner { background: #eff6ff; border-bottom: 1px solid #bfdbfe; color: #1e40af; font-size: 1.1rem; padding: 8px 16px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.trial-banner-link { color: #2563eb; font-weight: 600; text-decoration: underline; white-space: nowrap; }
.trial-banner-close { background: none; border: 0; color: #64748b; font-size: 1.1rem; cursor: pointer; padding: 0 4px; line-height: 1; }
.trial-banner-close:hover { color: #1e293b; }
.eyebrow { color: var(--blue, #2563eb); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; }

/* ---------- pricing QB-style refinements ---------- */
.plan-promo { font-size: 0.88rem; color: var(--blue); font-weight: 600; margin: 8px 0 0; }
.plan-users { font-size: 1.05rem; margin: 6px 0 0; color: var(--navy); }
.plan-divider { border-top: 1px solid var(--line); margin: 16px 0 0; }

.plan-save{display:inline-block;background:#fbbf24;color:#78350f;font-weight:700;font-size:.82rem;padding:4px 10px;border-radius:6px;margin:0 0 10px}

.plan-link{background:none;border:none;padding:0;color:#1668dc;font-size:.95rem;font-weight:600;cursor:pointer;font-family:inherit;display:block;margin-top:14px}
.plan-link:hover:not(:disabled){text-decoration:underline}
.plan-link:disabled{opacity:.5;cursor:default}

.plan-price .amount-was{flex:0 0 100%;font-size:1.05rem;font-weight:600;color:#94a3b8;text-decoration:line-through;white-space:nowrap;line-height:1.5}

.kf-card{text-align:center}
.kf-icon{width:52px;height:52px;margin:2px auto 14px;color:#1b9bd8}
.kf-icon svg{width:100%;height:100%}
.kf-sub{color:var(--muted);margin:6px 0 0;font-size:.95rem}

.feature-card{text-align:center}
.kf-icon{width:84px;height:84px;border-radius:50%;background:#e9f5fd;display:flex;align-items:center;justify-content:center;margin:4px auto 16px}
.kf-icon svg{width:44px;height:44px}
.kf-card,.feature-card{padding:30px 22px 26px;box-shadow:0 6px 24px rgba(15,52,96,.07);border-radius:16px}

a.dev-link{display:block;text-decoration:none;color:inherit;transition:transform .18s ease,box-shadow .18s ease}
a.dev-link:hover{transform:translateY(-4px);box-shadow:0 14px 30px rgba(15,52,96,.13)}
