/* Besidekin product page. Tokens follow design/tokens/besidekin.theme.json in kai-apps/apps/besidekin.
   Fonts are self-hosted OFL subsets (Latin + Vietnamese); see /besidekin/assets/OFL*.txt. */
@font-face { font-family: "Bricolage Grotesque"; src: url("/besidekin/assets/bricolage.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("/besidekin/assets/bevietnampro-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("/besidekin/assets/bevietnampro-600.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

:root {
  --canvas: #f3f5ef; --cream: #f8f3e8; --surface: #fff; --ink: #17302b; --muted: #4e635e;
  --accent: #1f6b57; --on-accent: #fff; --line: #c9d5cc; --hairline: #dde4dc;
  --tint: #dcebe3; --select: #eaf3ee; --sprout: #3e9179;
  --gold: #e6a532; --gold-tint: #fbefd2; --gold-ink: #6b4a0a;
  --dark: #10221f; --dark-muted: #a9bdb5;
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px;
  --display: "Bricolage Grotesque", "Be Vietnam Pro", system-ui, sans-serif;
  --body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", "Hiragino Sans", "Noto Sans JP", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; }
:lang(ja) body, body:lang(ja) { line-height: 1.75; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }

/* header */
.bk-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--canvas) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--hairline); }
.bk-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.bk-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; }
.bk-brand img { width: 34px; height: 34px; border-radius: 9px; }
.bk-header nav { display: flex; align-items: center; gap: 18px; font-size: 15px; font-weight: 600; }
.bk-header nav a { color: var(--muted); text-decoration: none; }
.bk-header nav a:hover { color: var(--accent); }
.bk-header nav .btn { color: var(--on-accent); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border-radius: 26px; border: 1.5px solid var(--accent); font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; transition: transform .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn.filled { background: var(--accent); color: var(--on-accent); }
.btn.outline { background: var(--surface); color: var(--accent); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--cream); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; z-index: 0; }
.hero::before { width: 520px; height: 520px; right: -160px; top: -200px; background: var(--tint); }
.hero::after { width: 380px; height: 380px; left: -160px; bottom: -200px; background: var(--gold-tint); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding: 72px 0 64px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.015em; line-height: 1.12; margin: 0; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3 { font-family: var(--body); letter-spacing: 0; line-height: 1.35; word-break: auto-phrase; }
h1 { font-size: clamp(40px, 6vw, 66px); font-weight: 800; }
.lead { font-size: 19px; color: var(--muted); margin: 20px 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.beta-note { margin: 18px 0 0; font-size: 15px; color: var(--muted); }

/* phone frame */
.phone { position: relative; width: 100%; max-width: 300px; border: 10px solid var(--ink); border-radius: 46px; overflow: hidden; background: var(--canvas); box-shadow: 0 30px 60px -28px rgba(16, 34, 31, .55); }
.phone img { width: 100%; height: auto; }
.hero-art { position: relative; display: flex; justify-content: center; }
.hero-art .phone { transform: rotate(-3deg); }
.float { position: absolute; background: var(--surface); border-radius: var(--r-md); padding: 12px 16px; box-shadow: 0 14px 30px -16px rgba(16, 34, 31, .45); font-size: 14px; line-height: 1.35; }
.float b { display: block; font-family: var(--display); font-size: 18px; }
.float span { color: var(--muted); }
.float.f2 { right: -8px; top: 60%; background: var(--gold-tint); color: var(--gold-ink); max-width: 220px; }
.float.f2 small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 2px; }

/* sections */
section { padding: 80px 0; }
.section-head { max-width: 40em; margin-bottom: 40px; }
h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; }
.section-head p { color: var(--muted); margin: 14px 0 0; font-size: 18px; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.step { background: var(--surface); border-radius: var(--r-lg); padding: 28px 24px 0; display: flex; flex-direction: column; overflow: hidden; }
.step .num { width: 40px; height: 40px; border-radius: 20px; background: var(--tint); color: var(--accent); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 18px; margin-bottom: 16px; }
.step h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.step p { margin: 0 0 24px; color: var(--muted); font-size: 16px; }
.step .phone { margin: auto auto -120px; max-width: 230px; border-width: 8px; border-radius: 38px; }
.steps .step:nth-child(2) { background: var(--select); }
.steps .step:nth-child(3) { background: var(--gold-tint); }
.steps .step:nth-child(3) p { color: var(--gold-ink); }
.steps-pad { height: 120px; }

/* glance band */
.glance { background: var(--dark); color: var(--canvas); }
.glance .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; }
.glance .phone { border-color: #2a403b; margin: 0 auto; max-width: 270px; }
.glance h2 { color: #fff; }
.glance p { color: var(--dark-muted); font-size: 18px; margin: 16px 0 0; }
.glance .eyebrow { color: var(--gold); }

/* principles */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: 26px 24px; }
.card .dot { position: relative; display: block; width: 36px; height: 28px; margin-bottom: 16px; }
.card .dot::before, .card .dot::after { content: ""; position: absolute; border-radius: 50%; }
.card .dot::before { width: 26px; height: 26px; left: 0; top: 0; background: var(--accent); }
.card .dot::after { width: 14px; height: 14px; right: 0; bottom: 0; background: var(--gold); }
.card h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* also in the app */
.more { background: var(--surface); }
.more .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 24px 0 0; }
.chips li { padding: 10px 16px; border-radius: 22px; border: 1.5px solid var(--line); background: var(--canvas); font-weight: 600; font-size: 15px; }
.chips li.on { background: var(--tint); border-color: var(--accent); color: var(--accent); }
.duo { display: flex; justify-content: center; gap: 20px; }
.duo .phone { max-width: 250px; }
.duo .phone:last-child { margin-top: 56px; }
.shot-note { font-size: 13px; color: var(--muted); margin: 18px 0 0; }

/* get it */
.get { text-align: center; }
.get .wrap { background: var(--accent); color: var(--on-accent); border-radius: 32px; padding: 56px 28px; position: relative; overflow: hidden; }
.get .wrap::after { content: ""; position: absolute; width: 220px; height: 220px; border-radius: 50%; background: var(--gold); right: -60px; bottom: -80px; opacity: .9; }
.get h2 { color: #fff; position: relative; z-index: 1; }
.get p { position: relative; z-index: 1; color: #dcebe3; margin: 14px auto 28px; max-width: 34em; }
.get p a { color: #fff; }
.get .cta { justify-content: center; position: relative; z-index: 1; }
.get .btn.filled { background: #fff; color: var(--accent); border-color: #fff; }
.get .btn.outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }

.fineprint { padding: 48px 0 24px; font-size: 15px; color: var(--muted); }
.fineprint h2 { font-size: 20px; margin: 0 0 6px; }
.fineprint p { margin: 0 0 22px; }

/* footer, same structure as the rest of the site */
footer { border-top: 1px solid var(--hairline); padding: 22px 20px 30px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; width: min(1120px, 100% - 40px); margin: 0 auto; font-size: 14px; color: var(--muted); }
footer > div, footer .lang-switch { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover, footer .lang-switch a[aria-current="true"] { color: var(--accent); font-weight: 700; }

@media (max-width: 900px) {
  .hero .wrap, .glance .wrap, .more .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero .wrap { padding: 48px 0 56px; }
  .steps, .cards { grid-template-columns: 1fr; }
  .step .phone { margin-bottom: -90px; }
  .steps-pad { height: 90px; }
  .glance .phone { order: 2; max-width: 260px; }
  .more .duo { order: 2; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  section { padding: 56px 0; }
  .bk-header nav a:not(.btn) { display: none; }
  .float { display: none; }
  .hero-art .phone { max-width: 260px; }
  .duo .phone { max-width: 46%; }
  .duo .phone:last-child { margin-top: 36px; }
  .phone { border-width: 7px; border-radius: 32px; }
  .cta .btn { width: 100%; }
  .get .wrap { border-radius: 24px; padding: 44px 20px; }
}
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }
.more .section-lead { color: var(--muted); font-size: 18px; margin: 14px 0 0; }
