:root {
  --ink: oklch(0.24 0.02 250);
  --paper: oklch(0.97 0.008 250);
  --surface: oklch(1 0 0);
  --border: oklch(0.9 0.01 250);
  --muted: oklch(0.45 0.02 250);
  --brand: oklch(0.68 0.13 210);
  --accent: oklch(0.48 0.12 210);
  --accent-hover: oklch(0.42 0.12 210);
  --accent-subtle: oklch(0.92 0.02 220);
  --on-fill: oklch(1 0 0);

  --font-heading:
    "Sora", "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", "Menlo", monospace;

  --text-display: 2.25rem;
  --text-h1: 1.75rem;
  --text-h2: 1.25rem;
  --text-h3: 1.0625rem;
  --text-body: 0.9375rem;
  --text-small: 0.8125rem;

  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-md: 0 4px 12px rgba(20, 20, 19, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: oklch(0.95 0.01 250);
    --paper: oklch(0.19 0.02 250);
    --surface: oklch(0.24 0.02 250);
    --border: oklch(0.32 0.02 250);
    --muted: oklch(0.72 0.02 250);
    --brand: oklch(0.72 0.13 210);
    --accent: oklch(0.78 0.12 205);
    --accent-hover: oklch(0.85 0.1 205);
    --accent-subtle: oklch(0.3 0.04 220);
    --on-fill: oklch(0.19 0.02 250);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.75;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul,
ol,
dl,
dd {
  margin: 0;
  padding: 0;
}

li {
  list-style: none;
}

.wrap {
  margin-inline: auto;
  width: 100%;
  max-width: 72rem;
  padding-inline: 1.5rem;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: var(--accent);
  color: var(--on-fill);
  font-family: inherit;
  font-size: var(--text-small);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  padding: 0 0.875rem;
  height: 2.25rem;
  white-space: nowrap;
  transition: background-color 150ms cubic-bezier(0.2, 0, 0, 1);
}

.btn:hover {
  background: var(--accent-hover);
}

.btn--lg {
  height: 2.75rem;
  padding-inline: 1.25rem;
  font-size: var(--text-body);
}

.btn--secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}

.btn--secondary:hover {
  background: var(--accent-subtle);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--border);
  background: var(--paper);
}

.site-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 4rem;
}

.site-header__logo {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--ink);
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  font-size: var(--text-small);
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-header__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-header__login {
  display: inline-flex;
  align-items: center;
  height: 2.75rem;
  padding-inline: 0.5rem;
  font-size: var(--text-small);
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}

.site-header__login:hover {
  color: var(--ink);
}

.drawer summary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius-md);
  color: var(--ink);
}

.drawer summary::-webkit-details-marker {
  display: none;
}

.drawer__panel {
  position: absolute;
  inset-inline: 0;
  top: 4rem;
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--border);
  background: var(--paper);
  padding: 0.5rem 1.5rem;
  box-shadow: var(--shadow-md);
}

.drawer__panel a {
  display: flex;
  align-items: center;
  height: 2.75rem;
  border-bottom: 1px solid var(--border);
  font-size: var(--text-body);
  color: var(--ink);
  text-decoration: none;
}

.drawer__panel a:last-child {
  border-bottom: 0;
}

@media (min-width: 768px) {
  .site-nav {
    display: flex;
  }

  .drawer {
    display: none;
  }

  .site-header__actions {
    gap: 0.75rem;
  }
}

.section {
  padding-block: 5rem;
}

.section--surface {
  background: var(--surface);
}

.section__heading {
  margin-top: 0.5rem;
  font-size: var(--text-h1);
}

.section__body {
  margin-top: 2rem;
}

.lead {
  margin-top: 1rem;
  max-width: 56rem;
  color: var(--muted);
}

.hero {
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 4rem);
}

.hero__inner {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  justify-content: center;
  gap: 3rem;
  padding-block: 3rem;
}

.hero__title {
  font-size: var(--text-display);
  line-height: 1.2;
}

.hero__title span {
  display: block;
}

.hero__desc {
  margin-top: 1.25rem;
  max-width: 56rem;
  color: var(--muted);
}

.hero__note {
  margin-top: 2rem;
  border-left: 2px solid var(--accent);
  background: var(--accent-subtle);
  padding: 1rem 1.25rem;
}

.hero__note strong {
  display: block;
  font-weight: 500;
  color: var(--ink);
}

.hero__note p {
  margin-top: 0.5rem;
  max-width: 56rem;
  font-size: var(--text-small);
  color: var(--muted);
}

.hero__cta {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.hero__price {
  margin-top: 1rem;
  font-size: var(--text-small);
  color: var(--muted);
}

.hero__price .amount {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.ripple {
  position: relative;
  width: 100%;
  height: 4rem;
  overflow: hidden;
}

@media (min-width: 640px) {
  .ripple {
    height: 5rem;
  }
}

@media (min-width: 1024px) {
  .ripple {
    height: 6rem;
  }
}

.ripple__layer {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 200%;
}

.ripple__layer svg {
  width: 100%;
  height: 100%;
}

.ripple__wave {
  animation-name: ripple-drift;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  will-change: transform;
}

.ripple__wave--near {
  animation-duration: 26s;
}

.ripple__wave--mid {
  animation-duration: 34s;
}

.ripple__wave--far {
  animation-duration: 42s;
}

@keyframes ripple-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ripple__wave {
    animation: none;
  }
}

.chat-preview {
  width: 19.5rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(20, 20, 19, 0.05);
}

.chat-preview__head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
  font-family: var(--font-heading);
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.chat-preview__ask {
  margin-top: 1rem;
  margin-left: auto;
  max-width: 82%;
  width: fit-content;
  border-radius: var(--radius-lg);
  background: var(--accent);
  color: var(--on-fill);
  padding: 0.5rem 0.75rem;
  font-size: var(--text-small);
}

.chat-preview__answer {
  margin-top: 0.75rem;
  max-width: 92%;
  width: fit-content;
  border-radius: var(--radius-lg);
  background: var(--accent-subtle);
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  font-size: var(--text-small);
}

.chat-preview__source {
  display: block;
  margin-top: 0.375rem;
  padding-left: 0.25rem;
  font-family: var(--font-mono);
  font-size: var(--text-small);
  color: var(--muted);
}

.chat-preview__dots {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.chat-preview__dots span {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background: var(--muted);
}

.chat-preview__dots span:nth-child(2) {
  opacity: 0.6;
}

.chat-preview__dots span:nth-child(3) {
  opacity: 0.3;
}

.hero__artwork {
  display: none;
}

@media (min-width: 1024px) {
  .hero__inner {
    flex-direction: row;
    align-items: center;
  }

  .hero__copy {
    flex: 1;
    min-width: 0;
  }

  .hero__artwork {
    display: flex;
    flex-shrink: 0;
  }
}

.news__list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.news__item {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.news__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: var(--text-small);
  color: var(--muted);
}

.news__meta time {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.news__title {
  margin-top: 0.25rem;
  font-size: var(--text-h3);
}

.news__title a {
  text-decoration: none;
}

.news__title a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .grid--steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.point {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.point h3 {
  margin-top: 0.5rem;
  font-size: var(--text-h3);
  font-weight: 600;
}

.point p {
  margin-top: 0.5rem;
  max-width: 56rem;
  color: var(--muted);
}

.step {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-top: 2px solid var(--border);
  padding-top: 1rem;
}

.step__no {
  font-family: var(--font-mono);
  font-size: var(--text-small);
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.step h3 {
  font-size: var(--text-h3);
}

.step p {
  font-size: var(--text-small);
  color: var(--muted);
}

.snippet {
  margin-top: 1.5rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: var(--text-small);
  color: var(--ink);
}

.snippet code {
  white-space: pre;
}

.plans {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .plans {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.plan-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 1.25rem;
}

.plan-card h3 {
  font-size: var(--text-h3);
  font-weight: 700;
}

.plan-card__price {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: var(--text-h2);
  font-variant-numeric: tabular-nums;
}

.plan-card__price span {
  font-size: var(--text-small);
  color: var(--muted);
}

.plan-card dl {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.25rem 0.75rem;
  font-size: var(--text-small);
}

.plan-card dt {
  color: var(--muted);
}

.plan-card dd {
  font-variant-numeric: tabular-nums;
}

.evaluation__cols {
  margin-top: 2.5rem;
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 1024px) {
  .evaluation__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.evaluation__primary {
  border-top: 2px solid var(--accent);
  padding-top: 1.25rem;
}

.evaluation__secondary {
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.evaluation__cols h3 {
  font-size: var(--text-h3);
  font-weight: 600;
}

.evaluation__cols p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.evaluation__action {
  margin-top: 1.25rem;
}

.references {
  margin-top: 3.5rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

.references ul {
  margin-top: 1.25rem;
}

.references a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.references p {
  margin-top: 0.25rem;
  font-size: var(--text-small);
  color: var(--muted);
}

.faq {
  display: flex;
  max-width: 56rem;
  flex-direction: column;
  gap: 1.5rem;
}

.faq > div {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.faq > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.faq dt {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: 700;
}

.faq dd {
  margin-top: 0.5rem;
  font-size: var(--text-small);
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
}

.site-footer__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding-block: 3rem;
}

.site-footer__cta p:first-child {
  font-family: var(--font-heading);
  font-size: var(--text-h2);
  font-weight: 700;
}

.site-footer__cta p + p {
  margin-top: 0.25rem;
  max-width: 56rem;
  font-size: var(--text-small);
  color: var(--muted);
}

@media (min-width: 768px) {
  .site-footer__cta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.site-footer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-block: 1.5rem;
  font-size: var(--text-small);
  color: var(--muted);
}

.site-footer__legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.site-footer__legal a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__legal a:hover {
  color: var(--ink);
}

.consent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  border-top: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}

.consent[hidden] {
  display: none;
}

.consent__inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-block: 1rem;
}

.consent p {
  font-size: var(--text-small);
  color: var(--muted);
}

.consent a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .consent__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
