/* PEAKTEMPO BESPOKE ENGINE - PT STYLESHEET (v3.1) */
:root {
  --pt-primary: #0f172a;
  --pt-secondary: #1e293b;
  --pt-accent: #0d9488;
  --pt-accent-dark: #0f766e;
  --pt-accent-light: #f0fdfa;
  --pt-accent-border: #99f6e4;
  --pt-bg-warm: #faf8f5;
  --pt-bg-surface: #ffffff;
  --pt-bg-subtle: #f1f5f9;
  --pt-text-main: #0f172a;
  --pt-text-muted: #475569;
  --pt-text-light: #64748b;
  --pt-border: #e2e8f0;
  --pt-border-dark: #cbd5e1;
  --pt-radius-sm: 6px;
  --pt-radius: 12px;
  --pt-radius-lg: 18px;
  --pt-radius-full: 9999px;
  --pt-shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --pt-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --pt-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --pt-font-heading: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --pt-font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body.pt-body {
  font-family: var(--pt-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--pt-text-main);
  background-color: var(--pt-bg-warm);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.pt-container {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.pt-container-narrow {
  width: 100%;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* HEADER & NAVIGATION */
.pt-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(250, 248, 245, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pt-border);
}

.pt-topbar {
  background-color: var(--pt-primary);
  color: #e2e8f0;
  font-size: 12px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pt-topbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pt-topbar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #99f6e4;
  font-weight: 500;
}

.pt-topbar-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.pt-topbar-link {
  color: #cbd5e1;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pt-topbar-link:hover {
  color: #ffffff;
}

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

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

.pt-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background-color: var(--pt-primary);
  padding: 4px;
  border: 1px solid var(--pt-border);
}

.pt-brand-text {
  display: flex;
  flex-direction: column;
}

.pt-brand-name {
  font-family: var(--pt-font-heading);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  color: var(--pt-primary);
  line-height: 1.1;
}

.pt-brand-desc {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--pt-accent-dark);
  font-weight: 600;
}

.pt-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.pt-nav-link {
  font-weight: 500;
  font-size: 14px;
  color: var(--pt-secondary);
  padding: 8px 4px;
  position: relative;
  transition: color 0.2s;
}

.pt-nav-link:hover,
.pt-nav-link.pt-active {
  color: var(--pt-accent-dark);
}

.pt-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--pt-accent);
  transition: width 0.25s ease;
}

.pt-nav-link:hover::after,
.pt-nav-link.pt-active::after {
  width: 100%;
}

.pt-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pt-mobile-toggle {
  display: none;
  background: var(--pt-bg-surface);
  border: 1px solid var(--pt-border);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--pt-primary);
  font-size: 18px;
}

.pt-mobile-drawer {
  display: none;
  flex-direction: column;
  background-color: var(--pt-bg-surface);
  border-top: 1px solid var(--pt-border);
  padding: 16px 24px;
  gap: 8px;
}

.pt-mobile-drawer.pt-open {
  display: flex;
}

.pt-mobile-drawer .pt-nav-link {
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 15px;
  border-bottom: 1px solid var(--pt-bg-subtle);
}

.pt-mobile-drawer .pt-nav-link:hover {
  background-color: var(--pt-bg-warm);
}

/* BUTTONS */
.pt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--pt-font-heading);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: var(--pt-radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
}

.pt-btn-primary {
  background-color: var(--pt-primary);
  color: #ffffff;
  border-color: var(--pt-primary);
}

.pt-btn-primary:hover {
  background-color: #000000;
  border-color: #000000;
  transform: translateY(-1px);
  box-shadow: var(--pt-shadow);
}

.pt-btn-accent {
  background-color: var(--pt-accent);
  color: #ffffff;
  border-color: var(--pt-accent);
}

.pt-btn-accent:hover {
  background-color: var(--pt-accent-dark);
  border-color: var(--pt-accent-dark);
  transform: translateY(-1px);
  box-shadow: var(--pt-shadow);
}

.pt-btn-secondary {
  background-color: #ffffff;
  color: var(--pt-primary);
  border-color: var(--pt-border-dark);
}

.pt-btn-secondary:hover {
  background-color: var(--pt-bg-subtle);
  border-color: var(--pt-primary);
}

.pt-btn-sm {
  padding: 6px 14px;
  font-size: 13px;
  min-height: 36px;
}

.pt-btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}

/* HERO SECTION */
.pt-hero {
  padding: 64px 0 54px;
  background: radial-gradient(circle at 50% 0%, rgba(13, 148, 136, 0.08) 0%, rgba(250, 248, 245, 0) 70%);
  border-bottom: 1px solid var(--pt-border);
}

.pt-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--pt-accent-light);
  border: 1px solid var(--pt-accent-border);
  color: var(--pt-accent-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--pt-radius-full);
  margin-bottom: 20px;
}

.pt-hero-title {
  font-family: var(--pt-font-heading);
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--pt-primary);
  margin-bottom: 20px;
  max-width: 900px;
}

.pt-hero-lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--pt-text-muted);
  max-width: 820px;
  margin-bottom: 30px;
}

.pt-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.pt-meta-bar {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--pt-text-light);
  border-top: 1px solid var(--pt-border);
  padding-top: 18px;
}

.pt-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* SECTION & GRID */
.pt-section {
  padding: 64px 0;
}

.pt-section-alt {
  background-color: #ffffff;
  border-top: 1px solid var(--pt-border);
  border-bottom: 1px solid var(--pt-border);
}

.pt-section-header {
  margin-bottom: 40px;
}

.pt-section-header.pt-center {
  text-align: center;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.pt-section-tag {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pt-accent-dark);
  margin-bottom: 8px;
  display: block;
}

.pt-section-title {
  font-family: var(--pt-font-heading);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--pt-primary);
  line-height: 1.25;
  margin-bottom: 12px;
}

.pt-section-desc {
  font-size: 16px;
  color: var(--pt-text-muted);
  line-height: 1.6;
}

.pt-grid {
  display: grid;
  gap: 24px;
}

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

.pt-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.pt-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* CARDS */
.pt-card {
  background-color: var(--pt-bg-surface);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius);
  padding: 26px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.pt-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--pt-shadow);
  border-color: var(--pt-border-dark);
}

.pt-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--pt-accent-light);
  color: var(--pt-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
  border: 1px solid var(--pt-accent-border);
}

.pt-card-title {
  font-family: var(--pt-font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--pt-primary);
  margin-bottom: 10px;
  line-height: 1.3;
}

.pt-card-desc {
  font-size: 14px;
  color: var(--pt-text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.pt-card-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--pt-accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.pt-card-link:hover {
  text-decoration: underline;
}

/* INTERACTIVE CALCULATOR (VANILLA JS MODULE) */
.pt-calc-box {
  background-color: #ffffff;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius-lg);
  padding: 34px;
  box-shadow: var(--pt-shadow);
}

.pt-calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.pt-calc-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.pt-calc-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pt-calc-label {
  font-weight: 600;
  font-size: 14px;
  color: var(--pt-primary);
}

.pt-calc-select, .pt-calc-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--pt-border-dark);
  border-radius: var(--pt-radius-sm);
  font-family: var(--pt-font-body);
  font-size: 14px;
  color: var(--pt-primary);
  background-color: var(--pt-bg-warm);
  outline: none;
  transition: border-color 0.2s;
}

.pt-calc-select:focus, .pt-calc-input:focus {
  border-color: var(--pt-accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.pt-calc-result-panel {
  background: linear-gradient(145deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: var(--pt-radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pt-calc-score-badge {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: var(--pt-radius-full);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #99f6e4;
  margin-bottom: 12px;
}

.pt-calc-score-val {
  font-family: var(--pt-font-heading);
  font-size: 52px;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  margin-bottom: 4px;
}

.pt-calc-score-title {
  font-size: 15px;
  color: #cbd5e1;
  margin-bottom: 18px;
}

.pt-calc-progress-track {
  width: 100%;
  height: 8px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.pt-calc-progress-fill {
  height: 100%;
  background-color: var(--pt-accent);
  width: 75%;
  transition: width 0.4s ease, background-color 0.4s ease;
}

.pt-calc-advice-box {
  background-color: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 16px;
  font-size: 13px;
  line-height: 1.55;
  color: #e2e8f0;
}

/* EDITORIAL CONTENT STYLES (450-700 WORDS) */
.pt-content {
  font-size: 16px;
  line-height: 1.75;
  color: #334155;
}

.pt-content h2 {
  font-family: var(--pt-font-heading);
  font-size: 26px;
  font-weight: 700;
  color: var(--pt-primary);
  margin-top: 36px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.pt-content h3 {
  font-family: var(--pt-font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--pt-secondary);
  margin-top: 28px;
  margin-bottom: 12px;
}

.pt-content p {
  margin-bottom: 20px;
}

.pt-content ul, .pt-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.pt-content li {
  margin-bottom: 10px;
}

.pt-quote {
  border-left: 4px solid var(--pt-accent);
  background-color: var(--pt-bg-warm);
  padding: 18px 24px;
  margin: 28px 0;
  border-radius: 0 var(--pt-radius) var(--pt-radius) 0;
  font-style: italic;
  color: var(--pt-secondary);
  font-size: 17px;
  line-height: 1.6;
}

.pt-quote cite {
  display: block;
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  color: var(--pt-accent-dark);
  margin-top: 10px;
}

/* TABLES */
.pt-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 30px 0;
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius);
  background-color: #ffffff;
  box-shadow: var(--pt-shadow-sm);
}

.pt-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.pt-table th {
  background-color: var(--pt-bg-subtle);
  color: var(--pt-primary);
  font-weight: 700;
  padding: 14px 18px;
  border-bottom: 1px solid var(--pt-border);
}

.pt-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--pt-border);
  color: var(--pt-text-muted);
}

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

.pt-table tr:hover td {
  background-color: var(--pt-bg-warm);
}

/* EDITORIAL BOARD & AUTHOR BLOCK */
.pt-board-box {
  background-color: var(--pt-bg-surface);
  border: 1px solid var(--pt-border);
  border-radius: var(--pt-radius);
  padding: 24px;
  margin: 36px 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.pt-board-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--pt-accent);
}

.pt-board-info {
  flex-grow: 1;
}

.pt-board-name {
  font-family: var(--pt-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--pt-primary);
  margin-bottom: 4px;
}

.pt-board-role {
  font-size: 13px;
  color: var(--pt-accent-dark);
  font-weight: 600;
  margin-bottom: 6px;
}

.pt-board-text {
  font-size: 13px;
  color: var(--pt-text-muted);
  line-height: 1.5;
}

/* FORMS */
.pt-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pt-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pt-form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--pt-primary);
}

.pt-form-input, .pt-form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--pt-border-dark);
  border-radius: var(--pt-radius-sm);
  font-family: var(--pt-font-body);
  font-size: 14px;
  color: var(--pt-text-main);
  background-color: #ffffff;
  outline: none;
  transition: all 0.2s ease;
}

.pt-form-input:focus, .pt-form-textarea:focus {
  border-color: var(--pt-accent);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.pt-form-textarea {
  resize: vertical;
  min-height: 130px;
}

/* FOOTER */
.pt-footer {
  background-color: #0b1120;
  color: #94a3b8;
  padding: 60px 0 24px;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.pt-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}

.pt-footer-col h4 {
  font-family: var(--pt-font-heading);
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pt-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pt-footer-links a {
  font-size: 14px;
  color: #94a3b8;
  transition: color 0.2s;
}

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

.pt-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  flex-wrap: wrap;
}

.pt-footer-bottom a {
  color: #cbd5e1;
}

.pt-footer-bottom a:hover {
  color: #ffffff;
}

/* COOKIE BANNER */
.pt-cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  max-width: 680px;
  background-color: #ffffff;
  border: 1px solid var(--pt-border-dark);
  border-radius: var(--pt-radius);
  box-shadow: var(--pt-shadow-lg);
  padding: 22px;
  z-index: 999;
  display: none;
  flex-direction: column;
  gap: 14px;
}

.pt-cookie-banner.pt-show {
  display: flex;
}

.pt-cookie-title {
  font-family: var(--pt-font-heading);
  font-size: 16px;
  font-weight: 700;
  color: var(--pt-primary);
}

.pt-cookie-desc {
  font-size: 13px;
  color: var(--pt-text-muted);
  line-height: 1.5;
}

.pt-cookie-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* RESPONSIVE */
@media (max-width: 991px) {
  .pt-nav, .pt-header-actions .pt-btn {
    display: none;
  }
  .pt-mobile-toggle {
    display: flex;
  }
  .pt-grid-3, .pt-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .pt-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .pt-calc-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .pt-grid-2, .pt-grid-3, .pt-grid-4 {
    grid-template-columns: 1fr;
  }
  .pt-footer-grid {
    grid-template-columns: 1fr;
  }
  .pt-hero-title {
    font-size: 30px;
  }
  .pt-hero-lead {
    font-size: 16px;
  }
  .pt-section-title {
    font-size: 24px;
  }
  .pt-topbar {
    display: none;
  }
}
