/*
 * Kestori marketing site styles.
 * Single shared stylesheet for all pages. Critical hero CSS is inlined
 * in index.html so first paint does not block on this file.
 */

:root {
  --color-bg: #ffffff;
  --color-text: #1a1a1a;
  --color-muted: #555;
  --color-accent: #0f4c3a;
  --color-accent-hover: #0a3528;
  --color-border: #e5e5e5;
  --color-soft: #f6f7f8;
  --maxw: 960px;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell,
    'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

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

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

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

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.5rem;
  margin-top: 2em;
}

h3 {
  font-size: 1.15rem;
  margin-top: 1.5em;
}

p {
  margin: 0 0 1em;
}

ul,
ol {
  margin: 0 0 1em;
  padding-left: 1.25em;
}

li {
  margin-bottom: 0.35em;
}

figure {
  margin: 0;
}

figcaption {
  color: var(--color-muted);
  font-size: 0.95rem;
}

code {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--color-soft);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

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

/* Header / nav */

.site-header {
  border-bottom: 1px solid var(--color-border);
  padding: 16px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
}

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

/* Buttons */

.btn {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  padding: 12px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid var(--color-accent);
}

.btn:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: #fff;
}

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

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

/* Sections */

.section {
  padding: 48px 0;
}

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

.lede {
  font-size: 1.15rem;
  color: var(--color-muted);
  max-width: 36em;
}

/* Feature grid */

.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
}

@media (min-width: 720px) {
  .features {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.feature h3 {
  margin-top: 0;
}

.feature p {
  color: var(--color-muted);
  font-size: 0.97rem;
}

/* Pricing card */

.price-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  margin: 24px 0;
  background: #fff;
  max-width: 28em;
}

.price-amount {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0;
}

.price-amount span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-muted);
}

.price-card ul {
  margin: 16px 0 20px;
}

/* Tables */

table.compare {
  border-collapse: collapse;
  width: 100%;
  margin: 16px 0 24px;
  font-size: 0.95rem;
}

table.compare th,
table.compare td {
  border: 1px solid var(--color-border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

table.compare th {
  background: var(--color-soft);
  font-weight: 600;
}

/* Migration guide */

.migration-steps {
  padding-left: 1.4em;
}

.migration-steps h3 {
  margin: 0 0 0.25em;
}

.screenshot-walkthrough {
  display: grid;
  gap: 28px;
  margin: 20px 0 32px;
}

.screenshot-walkthrough figure {
  display: grid;
  gap: 10px;
}

.screenshot-walkthrough img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: #fff;
}

/* Footer */

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

.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer a {
  color: var(--color-muted);
  margin-right: 14px;
}

/* Legal pages: tighter text column */

.legal {
  max-width: 42em;
}

.legal h2 {
  font-size: 1.25rem;
}

.legal h3 {
  font-size: 1.05rem;
}
