/* ============================================
   postcode.software — Landing Page Styles
   ============================================ */

/* --- Design Tokens --- */
:root {
  --color-primary: #2563eb;
  --color-primary-dark: #1d4ed8;
  --color-primary-light: #dbeafe;
  --color-accent: #06b6d4;
  --color-success: #10b981;
  --color-dark: #0f172a;
  --color-dark-soft: #1e293b;
  --color-dark-card: #1a2332;
  --color-text: #334155;
  --color-text-light: #64748b;
  --color-text-muted: #94a3b8;
  --color-border: #e2e8f0;
  --color-bg: #ffffff;
  --color-bg-soft: #f8fafc;
  --color-bg-alt: #f1f5f9;
  --color-code-bg: #0d1117;
  --color-code-border: #30363d;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.25rem;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

  --transition: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1140px;
}

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

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

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* --- Typography --- */
h1,
h2,
h3,
h4 {
  color: var(--color-dark);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 5rem 0;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 0.625rem 0;
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-dark);
  letter-spacing: -0.03em;
}

.navbar-brand .logo-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--color-primary);
  border-radius: 50%;
}

.navbar-brand span {
  color: var(--color-text-light);
  font-weight: 400;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.navbar-links a {
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}

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

.navbar-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4rem 1rem;
  background: var(--color-primary);
  color: #fff !important;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
  white-space: nowrap;
}

.navbar-cta:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
  color: var(--color-dark);
}

/* --- Hero --- */
.hero {
  padding: 10rem 0 6rem;
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-soft) 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 1rem;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-badge svg {
  width: 14px;
  height: 14px;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 500px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0.625rem 2rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
}

.hero-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-success);
}

/* Hero code block */
.hero-code {
  background: var(--color-code-bg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--color-code-border);
}

.hero-code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--color-code-border);
}

.hero-code-dots {
  display: flex;
  gap: 0.5rem;
}

.hero-code-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.hero-code-lang {
  color: var(--color-text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.hero-code pre {
  padding: 1.5rem 1.25rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.8;
  color: #e6edf3;
  margin: 0;
}

/* Syntax colors */
.code-comment {
  color: #8b949e;
}

.code-keyword {
  color: #ff7b72;
}

.code-string {
  color: #a5d6ff;
}

.code-url {
  color: #79c0ff;
}

.code-key {
  color: #d2a8ff;
}

.code-value {
  color: #a5d6ff;
}

.code-number {
  color: #79c0ff;
}

.code-punct {
  color: #8b949e;
}

.code-method {
  color: #ffa657;
}

.code-status {
  color: #7ee787;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8125rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn svg {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.3);
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-secondary {
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-bg-soft);
  border-color: #cbd5e1;
  color: var(--color-text);
}

.btn-large {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* --- Section Headers --- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--color-text-light);
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* --- Features Grid --- */
.features {
  background: var(--color-bg-soft);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
}

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

.feature-card h3 {
  margin-bottom: 0.625rem;
}

.feature-card p {
  color: var(--color-text-light);
  font-size: 0.925rem;
  line-height: 1.6;
}

/* --- How it works --- */
.how-it-works {
  background: var(--color-dark);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.how-it-works .section-header h2 {
  color: #fff;
}

.how-it-works .section-header p {
  color: var(--color-text-muted);
}

.how-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.how-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
}

.how-step-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.15);
  color: var(--color-primary);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
}

.how-step h3 {
  color: #fff;
  margin-bottom: 0.375rem;
}

.how-step p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Code blocks in how section */
.code-block {
  background: var(--color-code-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-code-border);
  overflow: hidden;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--color-code-border);
}

.code-block-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.code-block-copy {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: none;
  border: 1px solid var(--color-code-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  padding: 0.25rem 0.625rem;
  cursor: pointer;
  transition: all var(--transition);
}

.code-block-copy:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.code-block-copy svg {
  width: 14px;
  height: 14px;
}

.code-block pre {
  padding: 1.25rem 1rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.825rem;
  line-height: 1.75;
  color: #e6edf3;
  margin: 0;
}

.code-response {
  margin-top: 1rem;
}

/* Tabs for code examples */
.code-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-code-border);
}

.code-tab {
  padding: 0.625rem 1.25rem;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  position: relative;
  transition: color var(--transition);
}

.code-tab:hover {
  color: #fff;
}

.code-tab.active {
  color: #fff;
}

.code-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-primary);
}

.code-panel {
  display: none;
}

.code-panel.active {
  display: block;
}

/* --- Pricing --- */
.pricing {
  background: var(--color-bg-soft);
}

.pricing-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.pricing-plan {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.375rem;
}

.pricing-currency {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-dark);
}

.pricing-value {
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-dark);
  letter-spacing: -0.04em;
  line-height: 1;
}

.pricing-period {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.pricing-vat {
  color: var(--color-text-muted);
  font-size: 0.825rem;
  margin-bottom: 2rem;
}

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

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.625rem 0;
  font-size: 0.95rem;
  color: var(--color-text);
}

.pricing-features li+li {
  border-top: 1px solid var(--color-bg-alt);
}

.pricing-features li svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-success);
  margin-top: 2px;
}

.pricing-cta {
  width: 100%;
}

.pricing-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* --- Comparison --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2.5rem;
  font-size: 0.9rem;
}

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

.comparison-table thead th {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table .highlight-row {
  background: var(--color-primary-light);
  font-weight: 600;
}

.comparison-table .highlight-row td {
  color: var(--color-primary-dark);
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
}

/* --- FAQ --- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-dark);
  text-align: left;
  gap: 1rem;
  transition: color var(--transition);
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-question svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform var(--transition);
}

.faq-item.open .faq-question svg {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 300ms ease, padding 300ms ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
}

.faq-answer-inner {
  padding-bottom: 1.5rem;
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
}

.faq-answer-inner code {
  background: var(--color-bg-alt);
  padding: 0.125rem 0.375rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--color-primary-dark);
}

/* --- CTA Section --- */
.cta-section {
  background: var(--color-dark);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--color-text-muted);
  font-size: 1.1rem;
  max-width: 500px;
  margin: 0 auto 2rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.cta-section .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

.cta-section .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3rem 0;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand a {
  color: var(--color-text-muted);
  font-weight: 500;
}

.footer-brand a:hover {
  color: #fff;
}

.footer-sep {
  color: rgba(255, 255, 255, 0.15);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

/* --- Utilities --- */
.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

/* --- Legal Pages --- */
.legal-content h1 {
  margin-bottom: 1.5rem;
}

.legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  margin-bottom: 0.75rem;
  line-height: 1.8;
  font-size: 0.925rem;
}

/* --- Mobile Menu --- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--color-bg);
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 300ms ease;
  box-shadow: var(--shadow-xl);
}

.mobile-menu.open .mobile-menu-panel {
  transform: translateX(0);
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: auto;
  margin-bottom: 1.5rem;
  background: var(--color-bg-alt);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--color-text);
}

.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu-links a {
  display: block;
  padding: 0.875rem 0;
  color: var(--color-text);
  font-weight: 500;
  font-size: 1rem;
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu-links .btn {
  margin-top: 1.5rem;
  width: 100%;
  justify-content: center;
}

/* --- Order Section --- */
.order-section {
  background: var(--color-bg);
}

.order-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
}

.form-full {
  grid-column: 1 / -1;
}

.form-3 {
  grid-column: span 1;
}

.form-1 {
  grid-column: span 1;
}

@media (min-width: 600px) {
  .form-grid {
    grid-template-columns: 3fr 1fr 1fr 1fr;
  }

  .form-full {
    grid-column: 1 / -1;
  }

  .form-3 {
    grid-column: span 2;
  }

  .form-1 {
    grid-column: span 1;
  }

  .form-group:not(.form-full):not(.form-3):not(.form-1) {
    grid-column: span 2;
  }
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.375rem;
}

.form-group .required {
  color: #ef4444;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group input.error {
  border-color: #ef4444;
}

.form-divider {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
}

.order-summary {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.order-summary-total {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-dark);
  border-top: 1px solid var(--color-border);
  padding-top: 0.75rem;
  margin-top: 0.25rem;
}

.order-message {
  margin-top: 1.25rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
}

.order-message.success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.order-message.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.order-submit {
  width: 100%;
  margin-top: 1.5rem;
}

.order-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.order-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* --- Profile Page --- */
.profile-page {
  min-height: 100vh;
  background: var(--color-bg-soft);
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.profile-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.profile-header .navbar-brand {
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.profile-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.profile-card h2 {
  font-size: 1.5rem;
  margin-bottom: 2rem;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-bg-alt);
}

.profile-row:last-child {
  border-bottom: none;
}

.profile-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
  min-width: 140px;
}

.profile-value {
  font-size: 0.95rem;
  color: var(--color-dark);
  text-align: right;
  font-weight: 500;
}

.profile-value code {
  background: var(--color-bg-alt);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85em;
}

.profile-section {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.profile-section h3 {
  margin-bottom: 1rem;
}

.badge-active {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  background: #ecfdf5;
  color: #065f46;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-expiring {
  background: #fffbeb;
  color: #92400e;
}

.badge-expired {
  background: #fef2f2;
  color: #991b1b;
}

.profile-actions {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .how-steps {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  section {
    padding: 3.5rem 0;
  }

  .navbar-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .mobile-menu {
    display: block;
  }

  .hero {
    padding: 7rem 0 3.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-meta {
    flex-direction: column;
    gap: 0.625rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 2rem 1.5rem;
  }

  .pricing-value {
    font-size: 3rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .comparison-table {
    font-size: 0.8rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem;
  }

  .order-card {
    padding: 1.5rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-3,
  .form-1 {
    grid-column: span 1;
  }

  .profile-row {
    flex-direction: column;
    gap: 0.25rem;
  }

  .profile-value {
    text-align: left;
  }

  .profile-actions {
    flex-direction: column;
  }
}
