:root {
  --bg: #f6efe5;
  --bg-soft: #fbf7f1;
  --panel: rgba(255, 252, 247, 0.92);
  --panel-strong: #fffdf9;
  --ink: #291a14;
  --muted: #7a6659;
  --gold: #b88624;
  --gold-soft: #e4c98e;
  --line: rgba(97, 67, 33, 0.14);
  --shadow: 0 18px 40px rgba(63, 37, 12, 0.08);
  --shadow-soft: 0 10px 24px rgba(63, 37, 12, 0.06);
  --success: #2d6b50;
  --error: #a33222;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  background:
    radial-gradient(circle at top left, rgba(228, 201, 142, 0.5), transparent 28%),
    radial-gradient(circle at top right, rgba(183, 134, 36, 0.12), transparent 24%),
    linear-gradient(180deg, #fdf7ef 0%, #f5eee4 52%, #f3ebdf 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.26) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent 90%);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 86px;
  padding: 18px 24px;
  background: rgba(27, 18, 9, 0.9);
  backdrop-filter: blur(14px);
  color: #f6deb2;
  font-family: 'Cinzel', serif;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(25, 16, 7, 0.18);
}

.page {
  width: min(1440px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.intro {
  text-align: center;
  margin-bottom: 22px;
}

.intro .eyebrow {
  margin: 0;
  color: #9e6b14;
  font-family: 'Cinzel', serif;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.intro .subline {
  margin: 12px 0 0;
  color: #9c6236;
  font-family: 'Great Vibes', cursive;
  font-size: clamp(2rem, 2.8vw, 3rem);
}

.intro h1 {
  margin: 8px auto 0;
  max-width: 960px;
  color: #2f1c13;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.7rem, 6vw, 5.9rem);
  font-weight: 600;
  line-height: 0.95;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.72fr);
  gap: 24px;
  align-items: start;
}

.card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(163, 127, 72, 0.18);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.52), transparent 30%),
    radial-gradient(circle at top right, rgba(228, 201, 142, 0.14), transparent 20%);
}

.main,
.side,
.guide {
  padding: 28px;
}

.guide {
  margin-bottom: 22px;
}

.guide::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, #d4a33b, #8f5c02);
}

.guide h3,
h2,
h3 {
  margin: 0;
  color: #2f1d13;
  font-family: 'Cinzel', serif;
  font-weight: 700;
}

.guide h3 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1;
}

h3 {
  font-size: clamp(1.25rem, 1.8vw, 1.8rem);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 28px;
  font-size: 1.1rem;
  line-height: 1.65;
  color: #5b4638;
}

.guide-grid div {
  padding: 14px 16px;
  border: 1px solid rgba(184, 134, 36, 0.16);
  border-radius: 18px;
  background: rgba(255, 249, 239, 0.8);
}

.line {
  height: 1px;
  margin: 16px 0 22px;
  background: linear-gradient(90deg, rgba(184, 134, 36, 0.28), rgba(184, 134, 36, 0.05));
}

.grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

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

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

.phone-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #5a4335;
  font-size: 0.98rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(150, 115, 67, 0.2);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-family: 'Jost', sans-serif;
  font-size: 1rem;
  padding: 14px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #6f5131 50%),
    linear-gradient(135deg, #6f5131 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 3px),
    calc(100% - 16px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

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

input::placeholder,
textarea::placeholder {
  color: #9e8d7f;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(184, 134, 36, 0.36);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  background: #fffefb;
  border-color: rgba(184, 134, 36, 0.62);
  box-shadow: 0 0 0 4px rgba(184, 134, 36, 0.12);
}

.member-card,
.outfit-card,
.measure-block,
.fit-metrics-section,
.progress-dashboard,
.fit-guide,
.summary-item {
  box-shadow: var(--shadow-soft);
}

.member-card,
.outfit-card {
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid rgba(184, 134, 36, 0.14);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(250, 244, 235, 0.92));
}

.member-card {
  border-left: 6px solid var(--gold);
}

.member-grid {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 220px;
  gap: 14px;
  align-items: end;
}

.member-actions {
  margin: 14px 0 28px;
}

.outfit-header {
  margin-bottom: 14px;
  color: #2d1a12;
  font-family: 'Cinzel', serif;
  font-size: 1.18rem;
  font-weight: 700;
}

.outfit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.outfit-colors {
  margin: 12px 0 14px;
}

.color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.color-btn {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 6px 14px rgba(26, 15, 8, 0.12);
}

.color-btn:hover {
  transform: translateY(-2px) scale(1.04);
}

.color-btn.selected {
  border-color: #2d1a12;
  box-shadow: 0 0 0 4px rgba(184, 134, 36, 0.18);
}

.fit-metrics-section {
  padding: 18px;
  margin-bottom: 20px;
  border: 1px solid rgba(184, 134, 36, 0.14);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.95), rgba(248, 241, 232, 0.95));
}

.fit-metrics-grid,
.summary-dashboard,
.fit-guide-items {
  display: grid;
  gap: 12px;
}

.fit-metric,
.summary-item,
.fit-item {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(184, 134, 36, 0.12);
  background: rgba(255, 255, 255, 0.82);
}

.metric-name,
.summary-member,
.fit-item strong,
.progress-label {
  color: #2d1a12;
  font-family: 'Cinzel', serif;
  font-weight: 700;
}

.metric-name {
  font-size: 1rem;
  margin-bottom: 8px;
}

.metric-bar,
.progress-bar,
.member-progress {
  overflow: hidden;
  height: 10px;
  border-radius: 999px;
  background: #eadfd0;
}

.metric-fill,
.progress-bar > span,
.member-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b07911, #d5a84e, #efd08b);
}

.metric-text,
.progress-text,
.progress-hint,
.summary-detail,
.fit-text,
.quick-tip,
.measure-desc,
.measure-help,
.side p,
.side-block p,
.status {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.measure-block {
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid rgba(184, 134, 36, 0.16);
  border-radius: 24px;
  background: var(--panel-strong);
}

.measure-head {
  padding: 16px 18px;
  background: linear-gradient(120deg, #23140c, #54301a 58%, #8a5315 100%);
  color: #fae1a7;
  font-family: 'Cinzel', serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.measure-content {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
}

.avatar-panel {
  padding: 16px;
  border-right: 1px solid rgba(184, 134, 36, 0.12);
  background: linear-gradient(180deg, #fbf4ea 0%, #f7efe4 100%);
}

.avatar-box {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid rgba(184, 134, 36, 0.14);
  border-radius: 20px;
  background:
    radial-gradient(circle at top, rgba(228, 201, 142, 0.3), transparent 35%),
    linear-gradient(180deg, #fffaf3, #efe3d2);
}

.avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  padding: 18px;
  text-align: center;
  color: #9a7d65;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  line-height: 1.2;
}

.avatar-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.avatar-error {
  min-height: 20px;
  color: var(--error);
  font-size: 0.88rem;
  line-height: 1.35;
}

.measure-rows {
  min-width: 0;
}

.measure-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 42px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-top: 1px solid rgba(184, 134, 36, 0.09);
}

.measure-label {
  color: #332117;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.measure-unit {
  color: #856b57;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  cursor: pointer;
  text-decoration: none;
  font-family: 'Jost', sans-serif;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  width: 100%;
  color: #fff9ef;
  background: linear-gradient(135deg, #1e1510, #4f2b18);
  box-shadow: 0 12px 24px rgba(37, 20, 10, 0.18);
}

.btn.light {
  flex: 1;
  color: #51331d;
  background: rgba(255, 249, 239, 0.9);
  border: 1px solid rgba(184, 134, 36, 0.24);
  box-shadow: 0 10px 18px rgba(65, 39, 15, 0.06);
}

.btn.ghost {
  color: #8f5c02;
  background: rgba(255, 249, 239, 0.82);
  border: 1px solid rgba(184, 134, 36, 0.3);
}

.btn.ghost:hover,
.btn.light:hover {
  background: #fffdf8;
}

.btn.whatsapp {
  width: 100%;
  color: #fff;
  background: linear-gradient(135deg, #1f9f55, #35ca69);
  box-shadow: 0 12px 24px rgba(41, 142, 72, 0.2);
}

.side {
  position: sticky;
  top: 106px;
}

.side-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.side-block {
  padding: 16px;
  margin: 16px 0;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 248, 238, 0.95), rgba(247, 239, 227, 0.95));
  border: 1px solid rgba(184, 134, 36, 0.14);
}

.side-block h3 {
  margin-bottom: 8px;
}

.progress-dashboard,
.fit-guide {
  padding: 14px;
  border: 1px solid rgba(184, 134, 36, 0.14);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.95), rgba(248, 241, 232, 0.9));
}

.progress-item {
  margin-bottom: 10px;
}

.progress-label {
  margin-bottom: 8px;
  font-size: 1rem;
}

.summary-item {
  background: linear-gradient(180deg, rgba(255, 251, 245, 0.96), rgba(248, 241, 232, 0.9));
}

.summary-member {
  margin-bottom: 8px;
  font-size: 1rem;
}

.summary-detail .label {
  color: #4b3425;
  font-weight: 700;
}

.fit-item {
  border-left: 4px solid var(--gold);
}

.status {
  min-height: 24px;
  margin-top: 16px;
  font-weight: 600;
}

.measure-help {
  margin: 0 0 16px;
}

@media (max-width: 1180px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .side {
    position: static;
  }
}

@media (max-width: 900px) {
  .page {
    width: min(100vw - 24px, 1440px);
    padding-top: 18px;
  }

  .guide-grid,
  .grid.two,
  .outfit-grid,
  .member-grid,
  .measure-content {
    grid-template-columns: 1fr;
  }

  .phone-row {
    grid-template-columns: 1fr;
  }

  .measure-row {
    grid-template-columns: 1fr;
  }

  .measure-unit {
    margin-top: -6px;
  }

  .avatar-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(184, 134, 36, 0.12);
  }

  .side-row {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .topbar {
    min-height: 74px;
    font-size: 1.45rem;
    letter-spacing: 0.14em;
  }

  .main,
  .side,
  .guide {
    padding: 20px;
  }

  h2 {
    font-size: 1.8rem;
  }

  .intro .subline {
    font-size: 1.8rem;
  }

  .intro h1 {
    font-size: 2.8rem;
  }
}
/* Announcement Bar */
.pm-announcement {
  text-align: center;
  font-size: 13px;
  padding: 8px 10px;
  background: #f7f7f7;
  color: #9c6b2f;
  font-family: 'Jost', sans-serif;
  letter-spacing: 0.5px;
}

/* Header */
.pm-header {
  text-align: center;
  padding: 20px 0 10px;
  border-bottom: 1px solid #eee;
  background: #fff;
}

/* Logo */
.pm-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  letter-spacing: 3px;
  color: #000;
}

.pm-tagline {
  font-size: 10px;
  letter-spacing: 3px;
  margin-top: -5px;
  color: #777;
}

/* Navigation BELOW logo */
.pm-nav-bottom {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 28px;
}

.pm-nav-bottom a {
  text-decoration: none;
  color: #9c6b2f;
  font-size: 14px;
  font-family: 'Jost', sans-serif;
  transition: 0.3s;
}

.pm-nav-bottom a:hover {
  color: #000;
}
.pm-nav-bottom a {
  position: relative;
}

.pm-nav-bottom a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 1px;
  background: #9c6b2f;
  transition: 0.3s;
}

.pm-nav-bottom a:hover::after {
  width: 100%;
}

/* Footer */
.pm-footer {
  border-top: 1px solid #eee;
  margin-top: 60px;
  padding: 20px;
  background: #fff;
  font-family: 'Jost', sans-serif;
}

.pm-footer-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Left text */
.pm-footer-left {
  font-size: 13px;
  color: #9c6b2f;
}

/* Center dropdown */
.pm-footer-center {
  position: relative;
}

/* Button */
.pm-policy-btn {
  border: 1px solid #9c6b2f;
  background: transparent;
  padding: 8px 16px;
  font-size: 13px;
  color: #9c6b2f;
  cursor: pointer;
  font-family: 'Jost', sans-serif;
}

/* Dropdown menu */
.pm-policy-menu {
  position: absolute;
  bottom: 45px;
  left: 50%;
  transform: translateX(-50%);
  background: #f7f7f7;
  border-radius: 12px;
  padding: 12px 0;
  min-width: 200px;
  display: none;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  text-align: left;
  z-index: 999;
}

/* Menu items */
.pm-policy-menu a {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: #9c6b2f;
  font-size: 14px;
  transition: 0.2s;
}

.pm-policy-menu a:hover {
  background: #eee;
  color: #000;
}

.pm-policy-menu {
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: all 0.25s ease;
}

.pm-policy-menu.show {
  display: block;
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Bigger CTA */
.big-btn {
  min-height: 60px;
  font-size: 1.05rem;
  border-radius: 40px;
}

/* Submit button more premium */
.btn.primary.big-btn {
  background: linear-gradient(135deg, #000, #2b2b2b);
  font-size: 1.1rem;
}

/* Reference block upgrade */
.ref-block {
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, #fdf7ef, #f3eadc);
  border: 1px solid rgba(184, 134, 36, 0.2);
}

.ref-block h3 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.ref-block p {
  margin-bottom: 18px;
}

/* Download buttons spacing */
.download-row {
  margin-top: 18px;
}

/* Better mobile spacing */
@media (max-width: 768px) {

  .side {
    margin-top: 20px;
  }

  .big-btn {
    min-height: 54px;
    font-size: 1rem;
  }

  .ref-block h3 {
    font-size: 1.4rem;
  }

  .side-block {
    padding: 18px;
  }

}
.pm-policy-menu {
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: all 0.25s ease;
}

.pm-policy-menu.show {
  display: block;
  opacity: 1;
  transform: translate(-50%, 0);
}
