/* CalWeave Brand CSS — Tapestry Teal */

:root {
  --cw-primary: #1B8A8A;
  --cw-hover: #146B6B;
  --cw-focus: #3BBFBF;
  --cw-text: #2D3436;
  --cw-text-secondary: #636E72;
  --cw-bg: #F7F9FA;
  --cw-white: #FFFFFF;
  --cw-border: #DFE6E9;
  --cw-success: #00B894;
  --cw-error: #D63031;
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
  color: var(--cw-text);
  background: var(--cw-bg);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Nav */
.cw-nav {
  background: var(--cw-primary);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  position: sticky;
  top: 0;
  z-index: 100;
}

.cw-nav__brand {
  color: var(--cw-white);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.cw-nav__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.cw-nav__links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s;
}

.cw-nav__links a:hover,
.cw-nav__links a[aria-current="page"] {
  color: var(--cw-white);
}

.cw-nav__links a:focus-visible {
  outline: 2px solid var(--cw-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.cw-nav__toggle {
  display: none;
  background: none;
  border: none;
  color: var(--cw-white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* Main content */
main {
  flex: 1;
}

/* Hero */
.hero {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  background: linear-gradient(180deg, var(--cw-white) 0%, var(--cw-bg) 100%);
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--cw-text);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--cw-text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
  line-height: 1.5;
}

/* Feature callouts */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 3rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.feature-card {
  background: var(--cw-white);
  border: 1px solid var(--cw-border);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: box-shadow 0.2s;
}

.feature-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.feature-card__icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--cw-primary);
}

.feature-card p {
  color: var(--cw-text-secondary);
  font-size: 0.95rem;
}

/* CTA section */
.cta-section {
  text-align: center;
  padding: 3rem 1.5rem 4rem;
  max-width: 560px;
  margin: 0 auto;
}

.cta-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--cw-text-secondary);
  margin-bottom: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s, box-shadow 0.15s;
  line-height: 1.4;
}

.btn:focus-visible {
  outline: 2px solid var(--cw-focus);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--cw-primary);
  color: var(--cw-white);
}

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

.btn-secondary {
  background: var(--cw-white);
  color: var(--cw-primary);
  border: 2px solid var(--cw-primary);
}

.btn-secondary:hover {
  background: var(--cw-primary);
  color: var(--cw-white);
}

/* Beta request form */
.beta-form {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.beta-form input[type="email"] {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--cw-border);
  border-radius: 6px;
  width: 280px;
  max-width: 100%;
  background: var(--cw-white);
  color: var(--cw-text);
}

.beta-form input[type="email"]:focus {
  outline: 2px solid var(--cw-focus);
  outline-offset: -1px;
  border-color: var(--cw-primary);
}

.beta-form__message {
  width: 100%;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.beta-form__message--success {
  color: var(--cw-success);
}

.beta-form__message--error {
  color: var(--cw-error);
}

/* Page sections */
.page-header {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  background: linear-gradient(180deg, var(--cw-white) 0%, var(--cw-bg) 100%);
}

.page-header h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--cw-text);
  margin-bottom: 0.5rem;
}

.page-header p {
  color: var(--cw-text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.content-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* Feature list */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.feature-list__item {
  background: var(--cw-white);
  border: 1px solid var(--cw-border);
  border-radius: 8px;
  padding: 1.5rem 2rem;
}

.feature-list__item h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--cw-primary);
  margin-bottom: 0.5rem;
}

.feature-list__item p {
  color: var(--cw-text-secondary);
  font-size: 0.95rem;
}

/* Pricing table */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 700px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.pricing-card {
  background: var(--cw-white);
  border: 2px solid var(--cw-border);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  position: relative;
}

.pricing-card--featured {
  border-color: var(--cw-primary);
}

.pricing-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--cw-primary);
  color: var(--cw-white);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-card__price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--cw-primary);
  margin-bottom: 0.25rem;
}

.pricing-card__period {
  font-size: 0.85rem;
  color: var(--cw-text-secondary);
  margin-bottom: 1.5rem;
}

.pricing-card__features {
  list-style: none;
  text-align: left;
  margin-bottom: 1.5rem;
}

.pricing-card__features li {
  padding: 0.4rem 0;
  font-size: 0.95rem;
  color: var(--cw-text-secondary);
  border-bottom: 1px solid var(--cw-border);
}

.pricing-card__features li:last-child {
  border-bottom: none;
}

.pricing-card__features li::before {
  content: "\2713 ";
  color: var(--cw-primary);
  font-weight: 700;
  margin-right: 0.25rem;
}

.pricing-card .btn {
  width: 100%;
}

.alpha-note {
  text-align: center;
  padding: 1rem 1.5rem 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.alpha-note p {
  background: rgba(27, 138, 138, 0.08);
  border: 1px solid rgba(27, 138, 138, 0.2);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: var(--cw-primary);
  font-weight: 500;
}

/* Steps */
.steps {
  counter-reset: step;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.steps__item {
  background: var(--cw-white);
  border: 1px solid var(--cw-border);
  border-radius: 8px;
  padding: 1.5rem 2rem 1.5rem 4.5rem;
  position: relative;
}

.steps__item::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 1.25rem;
  top: 1.25rem;
  width: 2rem;
  height: 2rem;
  background: var(--cw-primary);
  color: var(--cw-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.steps__item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cw-text);
  margin-bottom: 0.25rem;
}

.steps__item p {
  color: var(--cw-text-secondary);
  font-size: 0.95rem;
}

.info-box {
  background: var(--cw-white);
  border: 1px solid var(--cw-border);
  border-left: 4px solid var(--cw-primary);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
}

.info-box h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--cw-primary);
  margin-bottom: 0.5rem;
}

.info-box p {
  color: var(--cw-text-secondary);
  font-size: 0.9rem;
}

/* Footer */
.cw-footer {
  background: var(--cw-white);
  border-top: 1px solid var(--cw-border);
  padding: 1.5rem;
  text-align: center;
  margin-top: auto;
}

.cw-footer__links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.cw-footer__links a {
  color: var(--cw-text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
}

.cw-footer__links a:hover {
  color: var(--cw-primary);
}

.cw-footer__links a:focus-visible {
  outline: 2px solid var(--cw-focus);
  outline-offset: 2px;
  border-radius: 2px;
}

.cw-footer__copy {
  font-size: 0.8rem;
  color: var(--cw-text-secondary);
}

/* 404 */
.not-found {
  text-align: center;
  padding: 6rem 1.5rem;
}

.not-found h1 {
  font-size: 4rem;
  font-weight: 800;
  color: var(--cw-primary);
  margin-bottom: 0.5rem;
}

.not-found p {
  font-size: 1.1rem;
  color: var(--cw-text-secondary);
  margin-bottom: 2rem;
}

/* Responsive */
@media (max-width: 640px) {
  .cw-nav__links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--cw-primary);
    padding: 1rem 1.5rem;
    gap: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .cw-nav__links--open {
    display: flex;
  }

  .cw-nav__toggle {
    display: block;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .steps__item {
    padding-left: 3.75rem;
  }

  .steps__item::before {
    left: 0.75rem;
    top: 1rem;
    width: 1.75rem;
    height: 1.75rem;
    font-size: 0.8rem;
  }

  .beta-form {
    flex-direction: column;
    align-items: center;
  }

  .beta-form input[type="email"] {
    width: 100%;
  }

  .beta-form .btn {
    width: 100%;
  }
}
