/* --- reset & base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: #222;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #0a7;
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: #086;
}

code {
  font-family:
    ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.88em;
  background: #f4f4f4;
  padding: 2px 7px;
  border-radius: 3px;
  color: #333;
}

h1,
h2,
h3 {
  line-height: 1.45;
  color: #111;
  font-weight: 700;
  margin: 0;
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

/* --- layout --- */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- header --- */
.site-header {
  border-bottom: 1px solid #f0f0f0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

.brand img {
  display: block;
  width: 28px;
  height: 28px;
}

.site-header__nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}

.site-header__nav a {
  color: #555;
  text-decoration: none;
}

.site-header__nav a:hover {
  color: #111;
  text-decoration: underline;
}

/* --- hero --- */
.hero {
  padding: 128px 0 112px;
}

.hero h1 {
  font-size: 36px;
  letter-spacing: 0.005em;
  margin-bottom: 28px;
}

.hero__lead {
  font-size: 17px;
  color: #444;
  margin-bottom: 44px;
  max-width: 620px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease,
    color 0.15s ease;
}

.btn--primary {
  background: #2c7;
  color: #fff;
  border-color: #2c7;
}

.btn--primary:hover {
  background: #1b6;
  border-color: #1b6;
  color: #fff;
}

.btn--ghost {
  background: #fff;
  color: #222;
  border-color: #d0d0d0;
}

.btn--ghost:hover {
  background: #f7f7f7;
  color: #111;
  border-color: #b8b8b8;
}

/* --- generic section --- */
.section {
  padding: 96px 0;
}

.section + .section {
  padding-top: 0;
}

.section__eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #2c7;
  margin-bottom: 14px;
}

.section h2 {
  font-size: 24px;
  margin-bottom: 28px;
}

.section__intro {
  color: #444;
  margin-bottom: 56px;
  max-width: 620px;
}

/* --- demo (stacked vertically) --- */
.demo {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
  margin-bottom: 28px;
}

.demo__panel {
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 24px 26px;
}

.demo__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 12px;
}

.demo__text {
  margin: 0;
  font-size: 15px;
  line-height: 2;
  color: #222;
}

/* the divider between the two panels — a subtle vertical mark + arrow */
.demo__arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 4px 0;
  color: #ccc;
  font-size: 16px;
  line-height: 1;
  user-select: none;
}

.demo__arrow::before {
  content: "";
  width: 1px;
  height: 18px;
  background: #d8d8d8;
}

/* mirror the extension's content.js styling so the demo matches the product */
.engloss-word {
  ruby-position: under;
  ruby-align: center;
}

.engloss-word > .engloss-ja {
  color: #0a7;
  font-size: 0.62em;
  font-weight: normal;
}

.engloss-verb {
  color: #ec4899;
  font-weight: 600;
}

/* legend deliberately sits right-aligned, separated from the panels */
.demo__legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  font-size: 12.5px;
  color: #666;
  margin-top: 18px;
  padding-right: 4px;
}

.demo__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.demo__legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.demo__legend-dot--verb {
  background: #ec4899;
}

.demo__legend-dot--gloss {
  background: #0a7;
}

/* --- features list (vertical stack, generous spacing) --- */
.features {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.feature h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.feature p {
  margin: 0;
  color: #444;
  line-height: 1.85;
}

/* --- steps --- */
.steps {
  margin: 0;
  padding-left: 26px;
}

.steps li {
  margin-bottom: 22px;
  line-height: 1.85;
  padding-left: 6px;
}

.steps li:last-child {
  margin-bottom: 0;
}

.steps li::marker {
  color: #999;
  font-weight: 600;
}

/* --- specs (definition list) --- */
.specs {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
}

@media (min-width: 540px) {
  .specs {
    grid-template-columns: 160px 1fr;
    column-gap: 20px;
    row-gap: 18px;
  }
}

.specs dt {
  font-weight: 600;
  color: #555;
  font-size: 14px;
  padding-top: 2px;
}

.specs dd {
  margin: 0;
  font-size: 15px;
  color: #333;
}

/* --- prose (privacy page) --- */
.prose {
  padding: 96px 0 32px;
}

.prose h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.prose .prose__updated {
  margin-bottom: 48px;
  color: #999;
  font-size: 13px;
}

.prose h2 {
  font-size: 18px;
  margin: 56px 0 14px;
  color: #111;
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose ul {
  padding-left: 22px;
  margin: 0 0 1.2em;
}

.prose li {
  margin-bottom: 10px;
  line-height: 1.85;
}

.prose code {
  font-size: 0.86em;
}

/* --- footer --- */
.site-footer {
  margin-top: 64px;
  border-top: 1px solid #f0f0f0;
  padding: 36px 0 56px;
  color: #999;
  font-size: 13px;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.site-footer__links {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-footer__links a {
  color: #555;
  text-decoration: none;
}

.site-footer__links a:hover {
  color: #111;
  text-decoration: underline;
}
