/* BYAKKO marketing site — shared styles. No external CDNs. */
:root {
  --navy: #0d1b4b;
  --navy-2: #16266b;
  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --ink: #131a2b;
  --muted: #61697d;
  --line: #ebedf2;
  --line-strong: #dfe3ea;
  --bg: #ffffff;
  --bg-soft: #fafbfd;
  --green: #16a34a;
  --radius: 10px;
  --maxw: 1080px;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
code { font-family: var(--mono); font-size: .88em; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: .12em .4em; color: #2a3550; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line-strong);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--navy); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.logo { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, var(--navy), var(--accent)); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 15px; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: var(--ink); font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--accent); text-decoration: none; }

/* Buttons */
.btn { display: inline-block; padding: 11px 22px; border-radius: 10px; font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid transparent; transition: all .15s; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); text-decoration: none; }
.btn-ghost { background: #fff; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--navy); text-decoration: none; }

/* Header right-side actions + language toggle */
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle { background: #fff; color: var(--navy); border: 1px solid var(--line-strong); border-radius: 8px; padding: 7px 12px; font-size: 14px; font-weight: 600; line-height: 1; cursor: pointer; font-family: inherit; transition: border-color .15s, color .15s; }
.lang-toggle:hover { border-color: var(--navy); }

/* Hero */
.hero { background: linear-gradient(177deg, #0d1b4b 0%, #122153 100%); color: #fff; padding: 104px 0 110px; }
.hero h1 { font-size: 48px; line-height: 1.1; margin: 0 0 20px; letter-spacing: -0.025em; font-weight: 720; }
.hero p.lead { font-size: 19px; line-height: 1.6; color: #c2cde6; max-width: 680px; margin: 0 0 32px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-ghost { background: rgba(255,255,255,0.06); color: #fff; border-color: rgba(255,255,255,0.22); }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16); color: #aebbd8; font-size: 12.5px; font-weight: 600; letter-spacing: .01em; margin-bottom: 24px; }

/* Sections */
section { padding: 92px 0; }
section.soft { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-label { color: var(--accent); font-weight: 600; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 10px; }
h2.section-title { font-size: 30px; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 680; }
.section-intro { color: var(--muted); font-size: 17px; line-height: 1.6; max-width: 660px; margin: 0 0 44px; }

/* Grid cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 26px; transition: border-color .15s; }
.grid .card:hover, .steps .card:hover { border-color: #c7cedb; }
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 650; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card .ic { width: 38px; height: 38px; border-radius: 9px; background: var(--bg-soft); border: 1px solid var(--line-strong); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-size: 19px; margin-bottom: 14px; }

/* Stat row */
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.stat { text-align: center; padding: 24px; }
.stat .num { font-size: 40px; font-weight: 760; color: var(--navy); letter-spacing: -0.02em; }
.stat .lbl { color: var(--muted); font-size: 14.5px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.step .n { width: 32px; height: 32px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: start; }
.tier { border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 24px; background: #fff; }
.tier.feat { border-color: var(--navy); box-shadow: 0 4px 18px rgba(13,27,75,.07); position: relative; }
.tier.feat .badge { position: absolute; top: -12px; left: 24px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.tier h3 { margin: 0 0 4px; font-size: 18px; }
.tier .price { font-size: 32px; font-weight: 760; color: var(--ink); letter-spacing: -0.02em; }
.tier .price small { font-size: 14px; color: var(--muted); font-weight: 500; }
.tier ul { list-style: none; padding: 0; margin: 16px 0 22px; }
.tier li { padding: 6px 0 6px 26px; position: relative; color: var(--muted); font-size: 14px; }
.tier li:before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.tier .btn { width: 100%; text-align: center; }

/* Tables (legal/pricing detail) */
table.t { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 14px; }
table.t th, table.t td { border: 1px solid var(--line-strong); padding: 10px 12px; text-align: left; }
table.t th { background: var(--bg-soft); font-weight: 700; }

/* Legal / prose pages */
.prose { max-width: 800px; margin: 0 auto; padding: 56px 24px 80px; }
.prose h1 { font-size: 34px; font-weight: 700; letter-spacing: -0.022em; margin: 0 0 6px; }
.prose .updated { color: var(--muted); font-size: 14px; margin: 0 0 30px; }
.prose h2 { font-size: 21px; font-weight: 650; margin: 36px 0 10px; }
.prose p, .prose li { color: #2c3650; font-size: 15.5px; }
.prose .ph { background: #fff7d6; border: 1px dashed #e0c200; padding: 1px 6px; border-radius: 5px; font-size: 13.5px; }
.note { background: var(--bg-soft); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 14px 16px; color: var(--muted); font-size: 14px; margin: 18px 0; }

/* CTA band */
.cta-band { background: linear-gradient(160deg, var(--navy), #122153); color: #fff; border-radius: var(--radius); padding: 52px 48px; text-align: center; }
.cta-band h2 { font-size: 27px; font-weight: 680; letter-spacing: -0.02em; margin: 0 0 10px; }
.cta-band p { color: #c2cde6; margin: 0 0 24px; }
.cta-band .btn-ghost { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.3); }

/* Footer */
footer.site { background: #0a1438; color: #aab6d4; padding: 54px 0 40px; font-size: 14px; }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
footer.site .brand { color: #fff; }
footer.site a { color: #aab6d4; display: block; padding: 4px 0; }
footer.site a:hover { color: #fff; text-decoration: none; }
footer.site h4 { color: #fff; font-size: 14px; margin: 0 0 8px; }
footer.site .copy { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; color: #7e8cb5; }

@media (max-width: 860px) {
  .grid, .stats, .steps, .tiers { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero h1 { font-size: 34px; }
  footer.site .cols { grid-template-columns: 1fr; }
}
