/* 1. Tokens */
:root {
  --pw-brand-700: #1f6f6a;
  --pw-brand-600: #27827c;
  --pw-brand-100: #d7efec;
  --pw-brand-050: #eff9f7;
  --pw-text-900: #0f172a;
  --pw-text-700: #334155;
  --pw-text-500: #64748b;
  --pw-border-200: #e2e8f0;
  --pw-bg-050: #f8fafc;
  --pw-sidebar: #0f1e2e;
  --pw-success: #1e7a4a;
  --pw-success-light: #ddf6e8;
  --pw-warning: #92400e;
  --pw-warning-light: #ffedd5;
  --pw-warning-border: #fed7aa;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 20px 60px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.06);
  --max-width: 1200px;
  --header-offset: 6.5rem;
}

/* 2. Reset & base */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
}

body {
  margin: 0;
  font-family: Manrope, ui-sans-serif, system-ui, sans-serif;
  color: var(--pw-text-900);
  background:
    radial-gradient(circle at top left, rgba(215, 239, 236, 0.9), transparent 36%),
    linear-gradient(180deg, #fdfefe 0%, #f8fafc 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

/* 3. Header & nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(248, 250, 252, 0.88);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--pw-text-900);
  flex-shrink: 0;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pw-brand-700), var(--pw-brand-600));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.brand-mark::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  transform: rotate(45deg);
  top: -8px;
  left: -8px;
}

.brand-mark::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
  right: -6px;
  bottom: -6px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text small {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--pw-text-500);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: 1px solid rgba(31, 111, 106, 0.22);
  border-radius: 10px;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  color: var(--pw-text-700);
  font: 700 0.9rem/1 Manrope, sans-serif;
  min-height: 44px;
  transition: background 0.15s;
}

.nav-toggle:hover {
  background: var(--pw-brand-050);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.nav-links a {
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--pw-text-700);
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--pw-brand-700);
  background: var(--pw-brand-050);
}

/* 4. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font: 700 0.95rem/1 Manrope, sans-serif;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--pw-brand-700), var(--pw-brand-600));
  box-shadow: 0 8px 20px rgba(31, 111, 106, 0.26);
}

.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(31, 111, 106, 0.32);
}

.btn-secondary {
  color: var(--pw-brand-700);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(31, 111, 106, 0.2);
}

/* 5. Hero */
.hero {
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: stretch;
}

.hero-copy {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.9));
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  background: linear-gradient(175deg, rgba(13, 26, 41, 0.99), rgba(17, 37, 56, 0.95));
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39, 130, 124, 0.2) 0%, transparent 68%);
  top: -180px;
  right: -140px;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--pw-brand-050);
  color: var(--pw-brand-700);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  margin-bottom: 0.9rem;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.lead {
  font-size: 1.05rem;
  color: var(--pw-text-700);
  max-width: 60ch;
  margin: 1.1rem 0 0;
}

.lead-strong {
  font-weight: 700;
  color: var(--pw-text-900);
}

.hero-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 2rem;
}

.hero-point {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(239, 249, 247, 0.75);
  border: 1px solid rgba(31, 111, 106, 0.1);
  color: var(--pw-text-700);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.5;
}

.panel-label {
  position: relative;
  z-index: 1;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1rem;
}

.panel-heading {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.015em;
  color: #fff;
}

.dark-card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 1.2rem 1.3rem;
  margin-bottom: 0.9rem;
}

.dark-card:last-child {
  margin-bottom: 0;
}

.dark-card p,
.dark-card li {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.dark-card ul {
  padding-left: 1.1rem;
  margin: 0.6rem 0 0;
}

.dark-card li + li {
  margin-top: 0.3rem;
}

/* 6. Sections */
.section {
  padding: 2.6rem 0;
}

.section[id] {
  scroll-margin-top: var(--header-offset);
}

.section-head {
  max-width: 680px;
  margin-bottom: 1.6rem;
}

.section-intro {
  color: var(--pw-text-700);
  font-size: 1.02rem;
  margin: 0.5rem 0 0;
  line-height: 1.65;
}

/* 7. Grids */
.grid-3,
.grid-2,
.feature-grid,
.trust-grid {
  display: grid;
  gap: 1.1rem;
}

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

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

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

.trust-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0.75rem;
}

/* 8. Cards */
.card,
.trust-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-card);
}

.card p,
.trust-card p {
  margin: 0;
  color: var(--pw-text-700);
  font-size: 0.94rem;
}

.card ul {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
  color: var(--pw-text-700);
  font-size: 0.94rem;
}

.card li + li {
  margin-top: 0.3rem;
}

/* 9. Pills */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.pill {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--pw-brand-050);
  border: 1px solid rgba(31, 111, 106, 0.14);
  color: var(--pw-brand-700);
  font-weight: 700;
  font-size: 0.88rem;
}

/* 10. Band */
.band {
  background: linear-gradient(135deg, rgba(31, 111, 106, 0.055), rgba(239, 249, 247, 0.85));
  border-top: 1px solid rgba(226, 232, 240, 0.75);
  border-bottom: 1px solid rgba(226, 232, 240, 0.75);
}

/* 11. Split highlight */
.split-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  align-items: stretch;
}

.highlight-dark {
  background: linear-gradient(175deg, var(--pw-sidebar), #162a3d);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
}

.highlight-dark h2 {
  color: #fff;
  margin-bottom: 0.9rem;
}

.highlight-dark li {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.95rem;
}

.highlight-dark ul {
  margin: 0;
  padding-left: 1.1rem;
}

.highlight-dark li + li {
  margin-top: 0.4rem;
}

/* 12. Note box */
.note-box {
  padding: 1rem 1.2rem;
  border-radius: 16px;
  background: var(--pw-warning-light);
  border: 1px solid var(--pw-warning-border);
  color: var(--pw-warning);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* 13. CTA / form */
.cta-wrap {
  background: linear-gradient(135deg, rgba(31, 111, 106, 0.1), rgba(255, 255, 255, 0.97));
  border: 1px solid rgba(31, 111, 106, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 2.5rem;
}

form {
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
}

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

label {
  display: grid;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--pw-text-900);
}

input,
select,
textarea {
  font: 400 0.95rem/1.5 Manrope, sans-serif;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--pw-border-200);
  background: #fff;
  padding: 0.9rem 1rem;
  color: var(--pw-text-900);
  transition: border-color 0.18s, box-shadow 0.18s;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(31, 111, 106, 0.55);
  box-shadow: 0 0 0 3px rgba(31, 111, 106, 0.12);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.form-actions {
  display: flex;
}

.form-status {
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.94rem;
  margin-bottom: 1rem;
}

.form-status[hidden] {
  display: none;
}

.form-status.success {
  background: var(--pw-success-light);
  color: var(--pw-success);
  border: 1px solid rgba(30, 122, 74, 0.22);
}

.form-status.error {
  background: var(--pw-warning-light);
  color: var(--pw-warning);
  border: 1px solid var(--pw-warning-border);
}

.helper-text {
  margin: 0;
  color: var(--pw-text-500);
  font-size: 0.88rem;
  line-height: 1.55;
}

.hero-compact {
  padding-bottom: 1rem;
}

.trial-hero {
  max-width: 820px;
}

.trial-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(239, 249, 247, 0.72);
  border: 1px solid rgba(31, 111, 106, 0.12);
  color: var(--pw-text-700);
}

.trial-scale strong {
  color: var(--pw-text-900);
}

.rating-section {
  display: grid;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.rating-section[hidden] {
  display: none;
}

.rating-section-head {
  display: grid;
  gap: 0.2rem;
}

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

.honeypot-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* 14. Footer */
.site-footer {
  padding: 2rem 0 3rem;
  color: var(--pw-text-500);
  font-size: 0.92rem;
}

.footer-box {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

/* 15. Responsive */
@media (max-width: 980px) {
  :root {
    --header-offset: 6rem;
  }

  .hero-grid,
  .grid-3,
  .grid-2,
  .feature-grid,
  .split-highlight,
  .trust-grid,
  .rating-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-panel,
  .highlight-dark,
  .cta-wrap {
    padding: 1.6rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-wrap {
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.5rem 0 0.75rem;
    gap: 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border-radius: 8px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-offset: 5.5rem;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

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