:root {
  --ink: #17302f;
  --ink-soft: #4a605e;
  --teal: #0d5c5c;
  --teal-deep: #083f40;
  --teal-tint: #e6f1ef;
  --paper: #fbf8f2;
  --card: #ffffff;
  --line: #e3ddd0;
  --orange: #e8913a;
  --yellow: #f0c330;
  --radius: 18px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Noto Sans JP", "PingFang TC", "Microsoft JhengHei", "Noto Sans TC", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.8; font-size: 16px; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(251, 248, 242, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { display: flex; align-items: baseline; gap: 8px; font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: .02em; white-space: nowrap; }
.brand small { font-weight: 500; font-size: 11px; color: var(--ink-soft); letter-spacing: .06em; }
.brand-mark { align-self: center; width: 22px; height: 22px; border-radius: 7px; background: var(--teal); position: relative; flex: none; }
.brand-mark::after { content: ""; position: absolute; left: 6px; top: 5px; width: 9px; height: 5px; border-left: 3px solid var(--yellow); border-bottom: 3px solid var(--yellow); transform: rotate(-45deg); }
.nav { display: flex; gap: 18px; margin-left: auto; font-size: 14px; }
.nav a { text-decoration: none; color: var(--ink-soft); white-space: nowrap; }
.nav a:hover { color: var(--teal); }
.langs { display: flex; gap: 2px; font-size: 13px; background: #efeadf; padding: 3px; border-radius: 999px; }
.langs a { text-decoration: none; padding: 3px 11px; border-radius: 999px; color: var(--ink-soft); white-space: nowrap; }
.langs a[aria-current] { background: var(--card); color: var(--teal); font-weight: 700; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }

/* hero */
.hero { padding: 64px 0 80px; background:
  radial-gradient(520px 380px at 88% 18%, rgba(240, 195, 48, .30), transparent 70%),
  radial-gradient(460px 360px at 70% 92%, rgba(232, 145, 58, .22), transparent 70%); }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow, .kicker { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--teal); }
h1 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.32; letter-spacing: .01em; margin: 14px 0 20px; }
html[lang="en"] h1 { letter-spacing: -.015em; line-height: 1.15; }
.lead { font-size: 17px; color: var(--ink-soft); max-width: 34em; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 28px; }
.badges li { font-size: 12.5px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink-soft); }
.btn { display: inline-block; background: var(--teal); color: #fff; text-decoration: none; font-weight: 700; padding: 13px 26px; border-radius: 999px; }
.btn:hover { background: var(--teal-deep); }

/* phone mock */
.phone { justify-self: center; width: min(320px, 100%); background: #14201f; border-radius: 40px; padding: 10px; box-shadow: 0 30px 60px -24px rgba(8, 63, 64, .55), 0 2px 0 rgba(255, 255, 255, .15) inset; }
.phone-screen { background: #f6f3ec; border-radius: 31px; padding: 22px 16px 18px; display: grid; gap: 12px; }
.ph-head { display: flex; justify-content: space-between; align-items: center; font-size: 18px; }
.demo { font-size: 10.5px; font-weight: 700; color: #8a5a12; background: #fbe6b8; padding: 2px 8px; border-radius: 6px; }
.ph-goal { background: var(--teal); color: #fff; border-radius: 16px; padding: 12px 14px; }
.ph-goal small { opacity: .8; font-size: 11px; letter-spacing: .06em; }
.ph-goal p { font-weight: 700; font-size: 15.5px; line-height: 1.5; }
.ph-tasks { display: grid; gap: 8px; }
.ph-tasks li { display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 9px 12px; }
.ph-tasks .tk { display: grid; line-height: 1.35; }
.ph-tasks b { font-size: 14px; }
.ph-tasks small { font-size: 11px; color: var(--ink-soft); }
.ph-tasks .cnt { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: #fff; }
.ph-tasks .done .dot { background: var(--teal); border-color: var(--teal); }
.ph-tasks .done b { color: var(--ink-soft); }
.ph-tasks .active { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(232, 145, 58, .18); }
.ph-tasks .active .dot { border-color: var(--orange); background: conic-gradient(var(--orange) 60%, #fff 0); }
.ph-tasks .active .cnt { color: #b9650f; }
.ph-btn { background: var(--orange); color: #fff; font-weight: 800; font-size: 18px; text-align: center; padding: 14px; border-radius: 16px; box-shadow: 0 5px 0 #c4741f; }
.ph-week small { font-size: 11px; color: var(--ink-soft); }
.bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; height: 62px; margin-top: 4px; }
.bars span { display: grid; grid-template-rows: 1fr auto; gap: 2px; text-align: center; }
.bars i { align-self: end; background: var(--teal); border-radius: 4px 4px 2px 2px; min-height: 3px; opacity: .85; }
.bars em { font-style: normal; font-size: 10px; color: var(--ink-soft); line-height: 1.2; }

/* sections */
.sec { padding: 84px 0; }
.sec h2 { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.45; margin: 10px 0 16px; max-width: 24em; }
html[lang="en"] .sec h2 { line-height: 1.25; letter-spacing: -.01em; }
.sec-lead { color: var(--ink-soft); max-width: 44em; }
.tint { background: var(--teal-tint); }
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.card h3 { font-size: 18px; margin: 8px 0 8px; line-height: 1.5; }
.card p { color: var(--ink-soft); font-size: 15px; }
.num { font-size: 13px; font-weight: 800; color: var(--orange); letter-spacing: .08em; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 40px; counter-reset: s; }
.steps li { background: var(--card); border-radius: var(--radius); padding: 22px 18px; position: relative; }
.steps li + li::before { content: ""; position: absolute; left: -11px; top: 36px; width: 8px; height: 8px; border-top: 2.5px solid var(--teal); border-right: 2.5px solid var(--teal); transform: rotate(45deg); }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 800; }
.steps h3 { font-size: 17px; margin: 12px 0 6px; }
.steps p { font-size: 14px; color: var(--ink-soft); line-height: 1.75; }

.role .tag { display: inline-block; font-size: 12.5px; font-weight: 800; color: var(--teal); background: var(--teal-tint); padding: 3px 12px; border-radius: 999px; }
.role ul { display: grid; gap: 8px; margin-top: 12px; }
.role li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 15px; color: var(--ink-soft); line-height: 1.65; }
.role li svg { color: var(--orange); margin-top: 4px; }
.tools { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: center; margin-top: 28px; padding: 30px 32px; border-radius: var(--radius); background: linear-gradient(120deg, #fdf1d3, #fbe3c8); }
.tools h3 { font-size: 22px; line-height: 1.5; margin-top: 6px; }
.tools p:not(.kicker) { color: #5b4a2f; }
.tools .kicker { color: #a2600f; }

.dark { background: var(--teal-deep); color: #fff; }
.dark .kicker { color: var(--yellow); }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 32px; }
.grid2 article { border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius); padding: 24px; background: rgba(255, 255, 255, .05); }
.grid2 h3 { font-size: 17px; margin-bottom: 6px; }
.grid2 p { font-size: 15px; color: rgba(255, 255, 255, .8); }

.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
.about > div > p:not(.kicker) { color: var(--ink-soft); }
.about-side { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.about-side h3 { font-size: 16px; margin-bottom: 10px; }
.about-side ol { counter-reset: n; display: grid; gap: 10px; }
.about-side ol li { counter-increment: n; display: grid; grid-template-columns: 24px 1fr; gap: 10px; font-size: 15px; color: var(--ink-soft); line-height: 1.7; }
.about-side ol li::before { content: counter(n); width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--teal-tint); color: var(--teal); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.note { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 13.5px; color: var(--ink-soft); }
.note b { color: var(--ink); margin-right: 6px; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13.5px; }
.foot-in { display: grid; gap: 8px; justify-items: start; }
.muted { color: var(--ink-soft); }
.foot .langs { margin-top: 8px; }

@media (max-width: 960px) {
  .nav { display: none; }
  .langs { margin-left: auto; }
  .hero { padding: 40px 0 56px; }
  .hero-in, .about, .tools { grid-template-columns: 1fr; }
  .cards3, .grid2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li { display: grid; grid-template-columns: 34px 1fr; column-gap: 14px; }
  .steps li h3 { margin: 3px 0 4px; }
  .steps li p { grid-column: 2; }
  .steps li + li::before { left: 30px; top: -12px; transform: rotate(135deg); }
  .sec { padding: 60px 0; }
}
@media (max-width: 420px) {
  .brand small { display: none; }
  .langs a { padding: 3px 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* CJK headings: break at phrase boundaries, balance line lengths */
h1, h2, h3 { text-wrap: balance; word-break: auto-phrase; }
.lead, .sec-lead, .card p, .steps p, .grid2 p { text-wrap: pretty; }
