/* GROOVE METER LP — same system as the WORKS posts (works-post skill):
   black ground, JetBrains Mono + Noto Sans JP, one accent per section, tree headings, white tag, film grain. */
@font-face { font-family: "JetBrains Mono"; src: url(fonts/JetBrainsMono-Regular.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url(fonts/JetBrainsMono-Medium.woff2) format("woff2"); font-weight: 500 700; font-display: swap; }

:root {
  --bg: #0e0e0e;
  --fg: #ecebe6;
  --sub: #c9c8c2;
  --dim: #8a8983;
  --line: #3a3a37;
  --accent: #e8603c;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --jp: "Noto Sans JP", "Hiragino Sans", sans-serif;
  --gut: 72px;
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
.hero > *, .two > *, .feed-grid > *, .plans > *, .swatches > *, .stats > * { min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { background: var(--bg); color: var(--fg); font-family: var(--mono); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body::after { /* film grain */
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 50; opacity: .07; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
.accent { color: var(--accent); }

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center;
  height: 56px; padding: 0 var(--gut); background: rgba(14,14,14,.86); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar .mark { font-weight: 700; font-size: 14px; letter-spacing: .14em; display: flex; align-items: center; gap: 12px; }
.bar .mark i { width: 14px; height: 5px; background: var(--fg); }
.bar nav { display: flex; gap: 28px; font-size: 12px; letter-spacing: .18em; color: var(--dim); align-items: center; }
.bar nav a:hover { color: var(--fg); }
.bar nav .try { color: var(--bg); background: var(--fg); padding: 7px 14px; }

/* ---------- section frame ---------- */
.sec { position: relative; max-width: 1240px; margin: 0 auto; padding: 128px var(--gut) 150px; border-bottom: 1px solid var(--line); }
.no { position: absolute; right: var(--gut); bottom: 56px; font-size: 16px; letter-spacing: .04em; border-bottom: 2px solid var(--fg); padding: 0 0 4px 40px; }
.no b { font-size: 36px; font-weight: 700; margin: 0 2px; }

/* tree heading (t0 product → t1 English section → t2 Japanese) */
.tree { font-weight: 700; margin-bottom: 64px; }
.tree .t0 { font-size: 15px; letter-spacing: .04em; padding-left: 26px; position: relative; }
.tree .t0::before { content: ''; position: absolute; left: 0; top: 6px; width: 14px; height: 5px; background: var(--fg); }
.tree .t1 { font-size: 34px; margin: 12px 0 0 52px; position: relative; letter-spacing: .02em; }
.tree .t2 { font-family: var(--jp); font-size: 22px; margin: 14px 0 0 118px; position: relative; letter-spacing: .08em; }
.tree .t1::before, .tree .t2::before { content: ''; position: absolute; border-left: 2px solid var(--fg); border-bottom: 2px solid var(--fg); }
.tree .t1::before { left: -46px; top: -20px; width: 36px; height: 42px; }
.tree .t2::before { left: -84px; top: -20px; width: 70px; height: 36px; }
.tree .t1::after, .tree .t2::after { content: ''; position: absolute; left: -12px; top: 50%; width: 3px; height: 28px; transform: translateY(-50%); background: var(--fg); }

.body { font-family: var(--jp); font-size: 17px; line-height: 2; color: var(--sub); letter-spacing: .04em; max-width: 34em; }
.body.wide { max-width: 44em; }

/* buttons: the white tag (house style) and an outline */
.tag, .line { display: inline-flex; align-items: center; height: 48px; font-weight: 700; font-size: 15px; letter-spacing: .1em; font-family: var(--jp); }
.tag { background: var(--fg); color: var(--bg); padding: 0 48px 0 24px; clip-path: polygon(0 0, 100% 0, calc(100% - 24px) 100%, 0 100%); }
.tag::after { content: '→'; font-family: var(--mono); margin-left: 14px; }
.line { border: 1px solid var(--fg); padding: 0 22px; }
.tag:hover { background: #fff; }
.tag.off { opacity: .45; cursor: default; } .tag.off::after { content: none; } .tag.off:hover { background: var(--fg); } .line:hover { background: rgba(236,235,230,.08); }

/* ---------- phone (generic frame + wireframe feed UI, not any app's real chrome) ---------- */
.phone { position: relative; aspect-ratio: 9 / 16; border-radius: 28px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px #4a4a46, 0 0 0 9px #1a1a19, 0 0 0 10px #4a4a46, 0 40px 80px rgba(0,0,0,.55); }
.phone > img, .phone > video { width: 100%; height: 100%; object-fit: cover; }
.phone .ui { position: absolute; inset: 0; pointer-events: none; }
.phone .ui i, .phone .ui span { position: absolute; display: block; }
.phone .ui .top { left: 7%; right: 7%; top: 3.2%; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,.75) 0 22%, transparent 22% 70%, rgba(255,255,255,.75) 70% 76%, transparent 76% 90%, rgba(255,255,255,.75) 90%); }
.phone .ui .acts { right: 3.5%; bottom: 17%; width: 8%; display: flex; flex-direction: column; gap: 26%; }
.phone .ui .acts i { position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(255,255,255,.8); background: rgba(0,0,0,.25); }
.phone .ui .cap { left: 5%; right: 18%; bottom: 4.5%; height: 11%; }
.phone .ui .cap .av { left: 0; top: 0; width: 9%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.85); }
.phone .ui .cap .l1 { left: 13%; top: 4%; width: 44%; height: 6px; border-radius: 3px; background: rgba(255,255,255,.85); }
.phone .ui .cap .l2 { left: 0; top: 46%; width: 88%; height: 5px; border-radius: 3px; background: rgba(255,255,255,.55); box-shadow: 0 14px 0 -0px rgba(255,255,255,.35); }
.phone .ui::before { content: ''; position: absolute; inset: auto 0 0 0; height: 26%; background: linear-gradient(transparent, rgba(0,0,0,.45)); }
.phone .safe { position: absolute; left: 0; right: 0; top: 12.5%; bottom: 12.5%; border-top: 1px dashed var(--accent); border-bottom: 1px dashed var(--accent); pointer-events: none; }
.phone .safe::before { content: 'SAFE · y 240–1680'; position: absolute; left: 6px; bottom: 4px; font-size: 10px; letter-spacing: .12em; color: var(--accent); background: rgba(14,14,14,.8); padding: 2px 5px; }

/* ---------- 00 HERO ---------- */
.hero { display: grid; grid-template-columns: minmax(280px, 400px) 1fr; gap: 96px; align-items: center; padding-top: 96px; }
.hero .phone { width: 100%; }
.hero .sound { position: absolute; left: 12px; top: 24px; z-index: 2; font: 500 10px/1 var(--mono); letter-spacing: .14em; color: var(--fg);
  background: rgba(14,14,14,.78); border: 1px solid rgba(236,235,230,.4); padding: 7px 9px; cursor: pointer; }
.hero .sound[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.hero .tree { margin-bottom: 48px; }
.hero h1 { font-family: var(--jp); font-weight: 700; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.45; letter-spacing: .1em; }
.hero .lead { font-family: var(--jp); font-size: 16px; line-height: 2; color: var(--sub); letter-spacing: .04em; margin-top: 28px; max-width: 32em; }
.hero .cta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 40px; }
.hero .cta .tag { background: var(--accent); color: #fff; }
.hero .specs { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 36px; font-size: 12px; letter-spacing: .16em; color: var(--dim); }
.hero .specs span + span::before { content: '·'; margin-right: 18px; }

/* ---------- 01 FEED ---------- */
.feed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; align-items: start; }
.feed-grid figure { display: flex; flex-direction: column; gap: 28px; }
.feed-grid .phone { width: 82%; margin: 0 auto; }
.feed-grid figcaption { font-family: var(--jp); font-size: 14px; line-height: 1.9; color: var(--sub); letter-spacing: .03em; border-top: 1px solid var(--line); padding-top: 14px; }
.feed-grid figcaption b { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--dim); font-weight: 500; margin-bottom: 4px; }
.phone.grid { background: #101010; padding: 10% 3% 0; }
.phone.grid .profile { position: relative; height: 13%; }
.phone.grid .profile i { position: absolute; display: block; }
.phone.grid .profile .av { left: 4%; top: 0; width: 20%; aspect-ratio: 1; border-radius: 50%; background: #2a2a28; }
.phone.grid .profile .l1 { left: 30%; top: 18%; width: 40%; height: 7px; border-radius: 3px; background: #3a3a37; }
.phone.grid .profile .l2 { left: 30%; top: 46%; width: 60%; height: 5px; border-radius: 3px; background: #2a2a28; }
.phone.grid .tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.phone.grid .tiles > * { aspect-ratio: 3 / 4; width: 100%; object-fit: cover; background: #1c1c1b; }
.phone.grid .tiles > span { background: repeating-linear-gradient(135deg, #1a1a19 0 6px, #161615 6px 12px); }
.phone.grid .tiles .ours { outline: 1.5px solid var(--accent); outline-offset: -1.5px; }
.frame169 { position: relative; width: 82%; margin: 0 auto; aspect-ratio: 9 / 16; box-shadow: 0 0 0 1px var(--line); }
.frame169 img { width: 100%; height: 100%; object-fit: cover; }
.frame169 .crop { position: absolute; left: 0; right: 0; top: 12.5%; bottom: 12.5%; border: 1px dashed var(--fg); mix-blend-mode: difference; }
.frame169 .crop em { position: absolute; right: 6px; top: 4px; font-style: normal; font-size: 10px; letter-spacing: .12em; }

/* ---------- 02 MEASURE ---------- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.crop-meter img { width: 100%; box-shadow: 0 0 0 1px var(--line); }
.spec { margin-top: 40px; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; border-bottom: 1px solid var(--line); padding: 18px 0 16px; }
.spec dt { font-size: 12px; letter-spacing: .2em; color: var(--dim); padding-top: 5px; }
.spec b { display: block; font-size: 21px; font-weight: 500; letter-spacing: .04em; }
.spec small { display: block; font-family: var(--jp); font-size: 13px; color: var(--sub); margin-top: 4px; letter-spacing: .03em; }

/* ---------- 03 COLOR ---------- */
.swatches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 56px; }
.swatches img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.swatches figcaption { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 13px; letter-spacing: .16em; }
.swatches figcaption span { font-size: 10px; color: var(--dim); border: 1px solid var(--line); padding: 3px 6px; }
.swatches figcaption span.pro { color: var(--fg); border-color: var(--fg); }
.swatches figcaption i { margin-left: auto; width: 48px; height: 12px; background: linear-gradient(90deg, var(--c1) 0 33.3%, var(--c2) 33.3% 66.6%, var(--c3) 66.6%); box-shadow: 0 0 0 1px var(--line); }

/* ---------- 04 PRIVATE ---------- */
.flow { width: 100%; max-width: 960px; color: var(--fg); overflow: visible; margin: 8px 0 64px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); padding-top: 18px; margin-bottom: 40px; }
.stats div { font-size: 12px; letter-spacing: .18em; color: var(--dim); }
.stats b { display: block; font-size: 44px; font-weight: 500; color: var(--fg); letter-spacing: 0; margin: 6px 0 4px; }
.stats small { font-family: var(--jp); font-size: 13px; letter-spacing: .03em; }

/* ---------- 05 PRICE ---------- */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 240px)); gap: 32px; margin: 48px 0 56px; }
.compare img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; box-shadow: 0 0 0 1px var(--line); }
.compare figcaption { font-family: var(--jp); font-size: 13px; color: var(--sub); margin-top: 12px; letter-spacing: .04em; }
.compare figcaption b { font-family: var(--mono); font-weight: 500; color: var(--fg); letter-spacing: .14em; margin-right: 8px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 900px; }
.plan { border: 1px solid var(--line); padding: 36px 36px 40px; display: flex; flex-direction: column; }
.plan.pro { border-color: var(--fg); }
.plan .name { font-size: 13px; letter-spacing: .3em; color: var(--dim); }
.plan .amount { font-size: 56px; font-weight: 500; margin: 10px 0 26px; }
.plan .amount small { font-family: var(--jp); font-size: 15px; color: var(--sub); margin-left: 12px; letter-spacing: .06em; }
.plan.pro .amount { color: var(--accent); }
.plan.pro .amount small { color: var(--sub); }
.plan ul { list-style: none; border-top: 1px solid var(--line); margin-bottom: 32px; }
.plan li { display: grid; grid-template-columns: 120px 1fr; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; font-family: var(--mono); }
.plan li span { font-size: 11px; letter-spacing: .2em; color: var(--dim); padding-top: 3px; }
.plan .tag, .plan .line { align-self: flex-start; margin-top: auto; }
.plan .note { font-family: var(--jp); font-size: 13px; color: var(--dim); margin-top: 16px; }

/* ---------- 06 FAQ ---------- */
.qa { max-width: 880px; border-top: 1px solid var(--line); }
.qa div { display: grid; grid-template-columns: 300px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); font-family: var(--jp); }
.qa dt { font-weight: 700; font-size: 16px; letter-spacing: .04em; }
.qa dd { font-size: 15px; line-height: 1.9; color: var(--sub); letter-spacing: .03em; }

/* ---------- footer ---------- */
.foot { max-width: 1240px; margin: 0 auto; padding: 64px var(--gut) 80px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.foot .tag { height: 36px; font-family: var(--mono); font-size: 14px; letter-spacing: .14em; padding: 0 60px 0 22px; }
.foot .tag::after { content: none; }
.foot p a { border-bottom: 1px solid var(--line); }
.foot p a:hover { color: var(--fg); }
.legal .tree.sub { margin: 96px 0 40px; }
.legal .tree.sub .t1 { margin-left: 0; }
.legal .tree.sub .t1::before, .legal .tree.sub .t1::after { display: none; }
.legal .tree.sub .t2 { margin-left: 66px; }
.legal .tree.sub .t2::before { left: -64px; width: 50px; }
.qa dd small { font-size: 12px; color: var(--dim); }
.foot p { font-size: 11px; line-height: 1.9; letter-spacing: .1em; color: var(--dim); text-align: right; }

/* ---------- narrow ---------- */
.flow-m { display: none; }

@media (max-width: 960px) {
  :root { --gut: 28px; }
  .hero { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .hero .phone { max-width: 340px; margin: 0 auto; }
  .hero .copy { order: -1; }
  .feed-grid { grid-template-columns: 1fr; gap: 72px; max-width: 420px; margin: 0 auto; }
  .two { grid-template-columns: 1fr; gap: 48px; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .plans { grid-template-columns: 1fr; }
  .qa div { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 600px) {
  :root { --gut: 20px; }
  .bar { height: 48px; }
  .bar .mark { font-size: 12px; }
  .bar nav .try { font-size: 11px; padding: 6px 10px; }
  .tree { margin-bottom: 40px; }
  .tree .t0 { font-size: 12px; }
  .hero h1 { font-size: 30px; }
  .hero .lead { font-size: 14px; }
  .tag, .line { height: 42px; font-size: 13px; }
  .no { bottom: 40px; font-size: 13px; } .no b { font-size: 26px; }
  .spec b { font-size: 17px; }
  .stats b { font-size: 34px; }
  .plan .name { font-size: 11px; }
  .qa dt { font-size: 14px; } .qa dd { font-size: 13px; }
  .bar nav a:not(.try) { display: none; }
  .sec { padding: 88px var(--gut) 120px; }
  .tree .t1 { font-size: 22px; }
  .tree .t2 { font-size: 15px; }
  .body { font-size: 14px; }
  .spec div { grid-template-columns: 1fr; gap: 4px; }
  .plan { padding: 26px 20px 30px; }
  .compare { gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare figcaption { font-size: 11px; }
  .plan .amount { font-size: 36px; margin: 6px 0 18px; }
  .plan li { grid-template-columns: 92px 1fr; font-size: 12px; padding: 10px 0; }
  .foot p { text-align: left; }
  .flow { display: none; }
  .flow-m { display: block; list-style: none; margin: 0 0 48px; }
  .flow-m li { border: 1px solid var(--fg); padding: 16px 18px; font-size: 12px; line-height: 1.8; color: var(--sub); font-family: var(--jp); }
  .flow-m li b { display: block; font-family: var(--mono); font-size: 15px; color: var(--fg); font-weight: 500; letter-spacing: .06em; }
  .flow-m li + li { margin-top: 34px; position: relative; }
  .flow-m li + li::before { content: '↓'; position: absolute; left: 50%; top: -30px; transform: translateX(-50%); color: var(--fg); font-family: var(--mono); }
  .hero .specs { gap: 10px; } .hero .specs span + span::before { margin-right: 10px; }
  .hero h1 { letter-spacing: .06em; }
}
/* Phone first view: the tool's real output, edge to edge (no device frame, no feed wireframe), copy below. */
@media (max-width: 600px) {
  .hero { padding-top: 0; gap: 48px; }
  .hero .copy { order: 0; }
  .hero .phone { width: calc(100% + 2 * var(--gut)); max-width: none; margin: 0 calc(-1 * var(--gut)); max-height: calc(100svh - 48px);
    border-radius: 0; box-shadow: none; background: #ECE9E2; }
  .hero .phone > video { object-fit: contain; }
  .hero .phone .ui { display: none; }
  .hero .sound { top: 12px; left: 12px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
