/* globals.css - Design Tokens */
@import "tailwindcss";

@theme inline {
  --primary: #2196f3;
  --primary-light: #e3f2fd;
  --secondary: #424242;
  --background: #ffffff;
  --surface: #f8f9fa;
  --text: #1a1a1a;
  --text-muted: #666666;
  --radius: 16px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans",
    "Helvetica Neue", sans-serif;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Nav */
.header {
  padding: 24px 0;
  border-bottom: 1px solid #eee;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}

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

/* Hero Section */
.hero {
  padding: 80px 0 60px;
  text-align: center;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 48px;
}

/* Coupon Card */
.coupon-card {
  background: var(--background);
  border: 1px solid var(--primary-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.coupon-tag {
  background: var(--primary);
  color: white;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 24px;
}

.discount-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.discount-desc {
  font-weight: 600;
  margin-bottom: 24px;
}

.code-box {
  background: var(--surface);
  border: 2px dashed #ddd;
  padding: 12px 12px 12px 24px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

#coupon-code {
  font-family: monospace;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.btn {
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

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

/* Tables */
.pricing-table {
  padding: 60px 0;
  background: var(--surface);
}

.table-wrapper {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 32px;
}

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

th {
  background: var(--primary-light);
  padding: 16px;
  text-align: left;
  font-weight: 600;
}

td {
  padding: 16px;
  border-bottom: 1px solid #eee;
}

/* Steps */
.how-to {
  padding: 80px 0;
}

.steps-grid {
  display: grid;
  grid-template-cols: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.step {
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius);
}

.step-num {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 24px;
}

/* Footer */
.footer {
  padding: 80px 0 40px;
  background: #111;
  color: white;
}

.footer-grid {
  display: grid;
  grid-template-cols: repeat(auto-fit, minmax(200px, 1fr));
  gap: 48px;
  margin-bottom: 60px;
}

.footer-links ul {
  list-style: none;
  margin-top: 16px;
}

.footer-links a {
  color: #999;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid #222;
  padding-top: 32px;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

.icon {
  width: 32px;
  height: 32px;
  color: var(--primary);
  margin-bottom: 16px;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
}
