@font-face {
  font-family: "Inter";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("/assets/Inter-Light-ed7700a5.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/assets/Inter-Regular-14a9d9e2.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/assets/Inter-Medium-88799d0f.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/assets/Inter-SemiBold-5f190ea5.woff2") format("woff2");
}

@font-face {
  font-family: "InterDisplay";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("/assets/InterDisplay-Light-b9c4809a.woff2") format("woff2");
}

@font-face {
  font-family: "InterDisplay";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/assets/InterDisplay-Regular-20cdf234.woff2") format("woff2");
}

@font-face {
  font-family: "InterDisplay";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/assets/InterDisplay-Medium-f95efd91.woff2") format("woff2");
}

@font-face {
  font-family: "InterDisplay";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/assets/InterDisplay-SemiBold-244c0f15.woff2") format("woff2");
}

@font-face {
  font-family: "Louize";
  font-style: italic;
  font-display: swap;
  src: url("/assets/Louize-Italic-205TF-11f0edd0.otf") format("opentype");
}

@font-face {
  font-family: "GeistMono";
  font-style: normal;
  font-display: swap;
  src: url("/assets/GeistMono-Variable-2cb6f4fb.woff2") format("woff2");
}

:root {
  --font-sans: "Inter", sans-serif;
  --font-display: "InterDisplay", sans-serif;
  --font-mono: "GeistMono", monospace;
  --font-louize: "Louize", serif;

  --bg: #0f0f0f;
  --bg-elevated: #191919;
  --border: #333333;
  --text: #f4f4f4;
  --muted: #b0b0b0;
  --accent: #5f5f5f;
  --accent-hover: #d8d8d8;
  --danger: #b9b9b9;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

html {
  font-feature-settings: "cv01", "cv03", "cv04", "cv06", "cv11", "ss03";
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: radial-gradient(1200px 600px at 50% -10%, #2b2b2b 0%, var(--bg) 55%);
  color: var(--text);
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-feature-settings: "ss07" 1, "ss08" 1, "zero" 1, "liga" 0;
  letter-spacing: -0.03em;
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.hero {
  text-align: center;
  padding: 4rem 1rem 3rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 1rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto 2rem;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #505050, var(--accent));
  color: white;
}

.btn-primary:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

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

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.875rem;
}

.interval-toggle {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0;
}

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

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.form-field input[type="email"],
.form-field input[type="password"],
.form-field input[type="text"],
.form-field input[type="file"] {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #111111;
  color: var(--text);
}

.flash {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.flash-notice {
  background: #1f1f1f;
  border: 1px solid #444444;
}

.flash-alert {
  background: #252525;
  border: 1px solid #525252;
}

.meta {
  color: var(--muted);
  font-size: 0.875rem;
}

.breadcrumbs {
  margin: 0 0 0.8rem;
}

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.8125rem;
}

.breadcrumbs-item [aria-current="page"] {
  color: var(--text);
}

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

.operation-history-card {
  margin-top: 2rem;
}

.operation-history-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.operation-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #111111;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.preview-frame {
  width: 100%;
  min-height: 480px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
}

code,
pre {
  font-family: var(--font-mono);
  background: #111111;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  overflow-x: auto;
  font-size: 0.85rem;
}

.copy-field + .copy-field {
  margin-top: 0;
}

.copy-field-heading {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 0.875rem;
}

.copy-field-titles {
  min-width: 0;
}

.copy-field-label {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: normal;
}

.copy-field-meta {
  margin: 0;
  line-height: 1.5;
}

.setup-lead {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.6;
  max-width: 42rem;
  margin: 0 0 1.75rem;
}

.setup-section,
.setup-integrations {
  margin-bottom: 1rem;
}

.setup-section-header {
  margin-bottom: 1.25rem;
}

.setup-section-header h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.setup-section-header .meta {
  margin: 0;
  line-height: 1.5;
}

.setup-integrations .setup-section-header {
  margin-bottom: 1rem;
}

.setup-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.setup-tab {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.setup-tab:hover {
  color: var(--text);
  border-color: #4e4e4e;
}

.setup-tab.is-active {
  color: var(--text);
  border-color: rgba(160, 160, 160, 0.55);
  background: rgba(160, 160, 160, 0.16);
}

.setup-panel {
  margin-bottom: 0;
}

.setup-panel-lead {
  margin: 0 0 1rem;
  color: var(--text);
  line-height: 1.55;
}

.setup-facts {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.setup-facts div {
  display: grid;
  gap: 0.2rem;
}

.setup-facts dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.setup-facts dd {
  margin: 0;
}

.setup-facts code {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  background: #111111;
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  word-break: break-all;
}

.setup-callout {
  margin: 0 0 0.875rem;
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid #464646;
  background: #202020;
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.5;
}

.setup-callout--warning {
  border: 1px solid rgba(250, 204, 21, 0.25);
  background: rgba(250, 204, 21, 0.08);
  color: #fde68a;
}

.setup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.copy-field-body {
  background: #111111;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.copy-field-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.45rem 0.65rem;
  background: #1b1b1b;
  border-bottom: 1px solid var(--border);
}

.copy-field-toolbar-label {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.copy-field-body pre {
  margin: 0;
  padding: 0.875rem 1rem;
  background: transparent;
  border: none;
  border-radius: 0;
  line-height: 1.6;
  font-size: 0.8125rem;
  white-space: pre-wrap;
  word-break: break-all;
}

.copy-field-pre--multiline {
  white-space: pre;
  word-break: normal;
  overflow-x: auto;
}

.copy-field-btn {
  position: static;
  z-index: auto;
  background: transparent;
  box-shadow: none;
}

.copy-field + .btn,
.copy-field + form,
.setup-section .setup-actions {
  margin-top: 1rem;
}

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid var(--border);
  color: var(--muted);
}

.badge-ready {
  border-color: #5c5c5c;
  color: #d0d0d0;
}

.badge-processing {
  border-color: #4f4f4f;
  color: #c4c4c4;
}

.badge-failed {
  border-color: #454545;
  color: #b3b3b3;
}
