/*
  Standalone landing page. Same tokens and fonts as css/style.css (mono palette),
  plus one accent: the red of the extension's own text notes.
  Shape rule: buttons and chips are pills, tiles and images are 14px.
*/
:root {
  --bg: #ffffff; --bg-soft: #f4f4f3; --fg: #0a0a0a; --fg-soft: #404040; --fg-mute: #767676; --line: #e6e6e6;
  --strong-bg: #0a0a0a; --strong-fg: #ffffff; --strong-mute: #a3a3a3;
  --accent: #d93a26;
  --shadow: 0 24px 60px -28px rgba(10, 10, 10, .28);
  --font-sans: "Inter", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-display: "Space Grotesk", "Inter", "Noto Sans JP", sans-serif;
  --pad-x: clamp(20px, 5vw, 72px);
  --radius: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0e; --bg-soft: #17171a; --fg: #f2f2f0; --fg-soft: #c6c6c3; --fg-mute: #929290; --line: #2b2b2e;
    --strong-bg: #f2f2f0; --strong-fg: #0d0d0e; --strong-mute: #5c5c5a;
    --accent: #ff6a55;
    --shadow: 0 24px 60px -28px rgba(0, 0, 0, .8);
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
*::selection { background: var(--fg); color: var(--bg); }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--fg); line-height: 1.8; -webkit-font-smoothing: antialiased; font-feature-settings: "palt"; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, li, summary, dd { word-break: auto-phrase; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.35; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.lead { color: var(--fg-soft); font-size: 16px; max-width: 34em; margin-top: 18px; }
section { padding: clamp(72px, 10vw, 128px) 0; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }

/* Header */
.header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.header__inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 16px; white-space: nowrap; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav a { text-decoration: none; color: var(--fg-soft); transition: color .2s var(--ease); }
.nav a:hover { color: var(--fg); }
.nav .lang { font: 600 13px var(--font-display); letter-spacing: 0.04em; }

/* Buttons: one primary (store), one quiet text link */
.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px; border-radius: 999px; background: var(--strong-bg); color: var(--strong-fg); font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; transition: transform .15s var(--ease), opacity .2s var(--ease); }
a.btn:hover { opacity: .86; }
a.btn:active { transform: scale(.98); }
.btn[aria-disabled="true"] { background: transparent; color: var(--fg); border: 1px dashed var(--fg-mute); cursor: default; }
.btn--sm { height: 38px; padding: 0 18px; font-size: 13px; }
.nav .btn { color: var(--strong-fg); }
.nav .btn[aria-disabled="true"] { color: var(--fg); }
.textlink { font-weight: 600; font-size: 15px; text-underline-offset: 5px; text-decoration-thickness: 1px; }
.textlink:hover { text-decoration-thickness: 2px; }

/* Hero */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(64px, 8vw, 104px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.eyebrow { font: 600 12px var(--font-display); letter-spacing: 0.14em; color: var(--fg-mute); }
.eyebrow::before { content: ""; display: block; width: 56px; height: 4px; background: var(--fg); margin-bottom: 18px; }
h1 { font-size: clamp(30px, 3.5vw, 46px); line-height: 1.32; margin-top: 18px; }
h1 em { font-style: normal; background: linear-gradient(var(--accent), var(--accent)) 0 96% / 100% 4px no-repeat; padding-bottom: 4px; }
.hero .lead { font-size: clamp(15px, 1.25vw, 17px); }
.hero__cta { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 24px; margin-top: 32px; }
.shot { border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; background: var(--bg-soft); }
.hero__shot { margin-right: calc(var(--pad-x) * -0.6); }
@media (prefers-reduced-motion: no-preference) {
  .hero__copy > *, .hero__shot { animation: rise .7s var(--ease) both; }
  .hero__copy > :nth-child(2) { animation-delay: .06s; }
  .hero__copy > :nth-child(3) { animation-delay: .12s; }
  .hero__copy > :nth-child(4) { animation-delay: .18s; }
  .hero__shot { animation-delay: .16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* Why: before / after */
.why { border-top: 1px solid var(--line); }
.why__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.flows { display: grid; gap: 28px; }
.flow h3 { font-size: 13px; font-weight: 600; color: var(--fg-mute); margin-bottom: 12px; }
.flow ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.flow li { font-size: 14px; padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg-mute); white-space: nowrap; }
.flow li:not(:first-child):not(.repeat) { margin-left: 20px; position: relative; }
.flow li:not(:first-child):not(.repeat)::before { content: "\2192"; position: absolute; left: -23px; top: 50%; transform: translateY(-50%); color: var(--fg-mute); font-weight: 400; font-size: 14px; }
.flow .repeat { border: 0; padding: 7px 4px; }
.flow--now h3 { color: var(--fg); }
.flow--now li { background: var(--strong-bg); color: var(--strong-fg); border-color: var(--strong-bg); font-weight: 700; font-size: 15px; padding: 9px 20px; }
.flow--now .repeat { background: none; color: var(--fg-soft); font-weight: 500; font-size: 14px; }

/* Use cases: bento, six tiles */
.uses { background: var(--bg-soft); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.tile { border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); padding: 28px; display: flex; flex-direction: column; overflow: hidden; }
.tile h3 { font-size: 19px; line-height: 1.5; font-weight: 700; }
.tile p { color: var(--fg-soft); font-size: 14.5px; margin-top: 8px; max-width: 32em; }
.tile__img { margin: 24px -28px -28px; border-top: 1px solid var(--line); flex: 1; background: #eceef1; display: flex; align-items: center; position: relative; container-type: inline-size; }
.tile__img img { width: 100%; }
.t-6 { grid-column: span 6; }
/* Same look as the extension's own text note, laid over a real capture */
.note { position: absolute; white-space: nowrap; font-weight: 600; font-size: clamp(10px, 2.8cqw, 15px); line-height: 1.45; color: #e0301e; background: #ffffff; padding: .25em .6em; border-radius: 6px; box-shadow: 0 0 0 1px rgba(10, 10, 10, .12), 0 6px 16px -8px rgba(10, 10, 10, .35); }
.chips { flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px; list-style: none; padding: 28px; }
.chips li { font-size: 14px; padding: 8px 16px; border-radius: 999px; background: #ffffff; color: #0a0a0a; box-shadow: 0 0 0 1px rgba(10, 10, 10, .1); white-space: nowrap; }
.chips small { color: #767676; font-size: 12.5px; margin-left: 6px; }

/* How it works */
.how__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: center; margin-top: 48px; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 36px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; }
.steps li::before { content: counter(step); font: 700 34px/1.1 var(--font-display); color: var(--fg-mute); }
.steps h3 { font-size: 19px; font-weight: 700; line-height: 1.5; }
.steps p { color: var(--fg-soft); font-size: 15px; margin-top: 6px; }
kbd { font: 500 12.5px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; white-space: nowrap; }

/* Features: three groups */
.features { border-top: 1px solid var(--line); }
.group { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: 24px clamp(24px, 4vw, 64px); padding: 40px 0; }
.group + .group { border-top: 1px solid var(--line); }
.group:first-of-type { margin-top: 24px; }
.group:last-of-type { padding-bottom: 0; }
.group h3 { font: 700 clamp(22px, 2.4vw, 30px)/1.4 var(--font-display); }
.group dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px clamp(24px, 4vw, 56px); }
.group dt { font-weight: 700; font-size: 16px; }
.group dd { color: var(--fg-soft); font-size: 14.5px; margin-top: 4px; }

/* Privacy */
.privacy { background: var(--bg-soft); }
.privacy h2 { font-size: clamp(30px, 4.6vw, 60px); line-height: 1.3; max-width: 14em; }
.privacy .lead { margin: 24px 0 28px; max-width: 36em; }

/* FAQ */
.faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); }
summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-weight: 700; font-size: 16.5px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 400 24px/1 var(--font-display); color: var(--fg-mute); transition: transform .2s var(--ease); }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--fg-soft); font-size: 15px; padding: 0 40px 24px 0; max-width: 44em; }

/* Closing */
.closing { text-align: center; border-top: 1px solid var(--line); }
.closing h2 { font-size: clamp(30px, 4.6vw, 56px); }
.closing .lead { margin: 16px auto 32px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 44px; color: var(--fg-mute); font-size: 13px; }
.footer__inner { display: flex; justify-content: space-between; gap: 12px 28px; flex-wrap: wrap; }
.footer__links { display: flex; gap: 8px 24px; flex-wrap: wrap; }
footer a { text-decoration: none; }
footer a:hover { color: var(--fg); }

/* Below 900px: every multi-column layout becomes one column */
@media (max-width: 900px) {
  .nav a:not(.btn):not(.lang) { display: none; }
  .nav { gap: 16px; }
  .hero__grid, .why__grid, .how__grid, .faq__grid, .group { grid-template-columns: minmax(0, 1fr); }
  .hero__shot { margin-right: 0; }
  .t-6 { grid-column: span 12; }
  .how__grid .shot { order: 2; }
  .tile { padding: 22px; }
  .tile__img { margin: 20px -22px -22px; }
}
@media (max-width: 560px) {
  .nav .btn { display: none; }
  .group dl { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; }
  .btn--sm { width: auto; }
  .hero__cta { gap: 18px; }
}

/* English page */
html[lang="en"] body { line-height: 1.65; font-feature-settings: normal; }
html[lang="en"] h1 { font-size: clamp(32px, 3.9vw, 52px); line-height: 1.12; letter-spacing: -0.03em; }
html[lang="en"] h2 { line-height: 1.18; letter-spacing: -0.025em; }
html[lang="en"] .privacy h2, html[lang="en"] .closing h2 { line-height: 1.1; }
html[lang="en"] .tile h3, html[lang="en"] .steps h3 { line-height: 1.35; }
html[lang="en"] .group h3 { line-height: 1.2; }
