@import url('./theme.css');

:root {
  /* Keep using app theme variables from theme.css */
}

body {
  background: var(--bg);
  color: var(--text);
}

/* Softer green (match calendar "my bookings" styling) */
.btn-primary {
  background: var(--booked-mine-bg);
  color: var(--booked-mine-text);
  border-color: var(--booked-mine-border);
}

.btn-primary:hover {
  background: var(--primary-light);
  color: var(--booked-mine-text);
  border-color: var(--booked-mine-text);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 36px;
  height: 36px;
}

.brand-name {
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: var(--radius);
}

.nav a:hover {
  background: var(--surface-hover);
}

.hero {
  padding: 56px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.hero-points {
  list-style: none;
  margin: auto 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--text-light);
  font-size: 14.5px;
  line-height: 1.45;
}

.hero-points li {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero-point-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex: 0 0 auto;
}

.hero-point-text {
  padding-top: 1px;
}

.hero-point-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.5;
}

.hero-point-text a {
  color: var(--primary-dark);
  text-decoration: none;
}

.hero-point-text a:hover {
  text-decoration: underline;
}

.h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0;
  font-weight: var(--font-weight-bold);
}

.lede {
  font-size: 18px;
  color: var(--text-light);
  margin: 14px 0 0;
  max-width: 60ch;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

/* Match the app's analytics dashboard icon style */
.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  color: var(--primary);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.5;
}

.card ul {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--text-light);
}

.card li {
  margin: 6px 0;
}

.section {
  padding: 32px 0;
}

.section h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

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

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

.badge {
  display: inline-block;
  font-size: var(--font-size-sm);
  color: var(--text-light);
  background: var(--surface-hover);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 999px;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  color: var(--text-light);
  font-size: var(--font-size-sm);
}

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

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-sep {
  color: var(--text-light);
}

.footer-centered {
  max-width: 90ch;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.footer a {
  color: var(--primary-dark);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

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

th {
  background: var(--surface-hover);
  color: var(--text);
  font-weight: var(--font-weight-semibold);
}

tr:last-child td {
  border-bottom: none;
}

.kv {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.kv a {
  color: var(--primary-dark);
}

img.responsive {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-hover);
}

/* Signup-like form styling (floating labels) */
.marketing-form {
  margin-top: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 900px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.floating-field {
  position: relative;
  margin-bottom: 16px;
}

.floating-field input,
.floating-field select,
.floating-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 18px 14px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
}

.floating-field textarea {
  resize: vertical;
  min-height: 140px;
}

.floating-field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-light) 50%),
    linear-gradient(135deg, var(--text-light) 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 13px) calc(50% - 2px), calc(100% - 44px) 50%;
  background-size: 5px 5px, 5px 5px, 1px 20px;
  background-repeat: no-repeat;
  padding-right: 44px;
}

.floating-field input:focus,
.floating-field select:focus,
.floating-field textarea:focus {
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 1px var(--primary-dark);
  outline: none;
}

.floating-field label {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-light);
  padding: 0 4px;
  background: var(--surface);
  pointer-events: none;
  transition: all .15s ease;
}

.floating-field input:focus + label,
.floating-field input:not(:placeholder-shown) + label,
.floating-field textarea:focus + label,
.floating-field textarea:not(:placeholder-shown) + label,
.floating-field select:focus + label,
.floating-field select[value]:not([value=""]) + label {
  top: 0;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--primary-dark);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.form-status {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-light);
}

.form-status.is-error {
  color: var(--danger-red);
}

.form-status.is-success {
  color: var(--text);
}
