/* Checkout Master — marketing site
   Plain CSS, no build step, no dependencies. */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --card: #ffffff;
  --border: #e4e7f0;
  --text: #14161d;
  --muted: #5b6172;
  --accent: #4a3ee8;
  --accent-text: #ffffff;
  --accent-soft: #efedfd;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;

  --radius: 14px;
  --maxw: 1060px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1116;
    --bg-soft: #14171f;
    --card: #171a22;
    --border: #272c39;
    --text: #eef0f6;
    --muted: #9aa1b4;
    --accent: #9a92ff;
    --accent-text: #14161d;
    --accent-soft: #1e1c3a;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

h1,
h2,
h3 {
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.4rem, 3vw, 1.85rem);
}

h3 {
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: color-mix(in srgb, var(--muted) 14%, transparent);
  border-radius: 5px;
  padding: 1px 5px;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--accent);
  color: var(--accent-text);
  border-radius: 8px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  z-index: 5;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 66px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
  font-size: 1.02rem;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.94rem;
}

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

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

/* Language dropdown — a native <select> so it behaves correctly with a
   keyboard and gets the proper picker on phones. The chevron is drawn with
   a CSS border so it follows the text colour in both themes. */

.lang-select {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  padding-left: 18px;
  border-left: 1px solid var(--border);
}

.lang-select::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.lang-select select {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 0.94rem;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 6px 32px 6px 12px;
  cursor: pointer;
}

.lang-select select:hover {
  border-color: var(--muted);
}

.lang-select select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

/* Hero */

.hero {
  padding: 84px 0 68px;
}

.hero h1 {
  max-width: 16ch;
}

.lede {
  font-size: clamp(1.06rem, 2.2vw, 1.25rem);
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 1.6em;
}

.pill {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 550;
  letter-spacing: 0.01em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 22px;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.button {
  display: inline-block;
  text-decoration: none;
  font-weight: 550;
  font-size: 0.97rem;
  padding: 11px 22px;
  border-radius: 10px;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--accent);
  color: var(--accent-text);
}

.button.secondary {
  border-color: var(--border);
  color: var(--text);
  background: var(--card);
}

.button:hover {
  opacity: 0.9;
}

/* Sections */

section {
  padding: 62px 0;
  border-top: 1px solid var(--border);
}

section.soft {
  background: var(--bg-soft);
}

.section-lede {
  color: var(--muted);
  max-width: 60ch;
  margin-bottom: 2em;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

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

.card .tag {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.card p,
.card ul {
  color: var(--muted);
  font-size: 0.96rem;
}

.card ul {
  padding-left: 1.2em;
  margin: 0;
}

.card strong {
  color: var(--text);
  font-weight: 600;
}

.card li {
  margin-bottom: 0.3em;
}

.card.wide {
  grid-column: 1 / -1;
}

.card .email {
  font-size: 1.15rem;
  font-weight: 550;
  color: var(--text);
  margin-bottom: 0.5em;
}

.note {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
  margin-top: 34px;
}

.note h3 {
  margin-bottom: 0.35em;
}

.note p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Pricing */

.price {
  font-size: 3rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 0.15em;
}

.price-sub {
  color: var(--muted);
  margin-bottom: 1.4em;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 56px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  gap: 16px 28px;
  flex-wrap: wrap;
  align-items: center;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer .spacer {
  margin-left: auto;
}

@media (max-width: 600px) {
  .hero {
    padding: 56px 0 46px;
  }

  section {
    padding: 46px 0;
  }
}
