/* ==========================================================================
   FITDOJO — proposal page
   ========================================================================== */

.page-proposal main {
  padding-top: 96px;
}

/* Fraunces italic ascender/descender keluar dari line box; beri ruang agar overflow:hidden tidak memotong */
.page-proposal .lines-reveal .line {
  padding-block: 0.15em;
  margin-block: -0.15em;
  padding-inline-end: 0.15em;
}

.link-plain {
  padding: 0;
  border: 0;
  background: none;
  color: var(--cream-2);
  transition: color 0.3s;
}

.link-plain:hover {
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   01 Hero
   -------------------------------------------------------------------------- */

.hero-proposal {
  overflow: hidden;
  padding-top: clamp(40px, 6vw, 80px);
}

.hero-proposal__orb-1 {
  width: 520px;
  height: 520px;
  top: -160px;
  right: -120px;
}

.hero-proposal__orb-2 {
  width: 320px;
  height: 320px;
  bottom: 0;
  left: -140px;
  opacity: 0.3;
}

.hero-proposal__grid {
  position: relative;
  display: grid;
  gap: 48px;
}

@media (min-width: 1024px) {
  .hero-proposal__grid {
    grid-template-columns: 1.5fr 1fr;
    align-items: end;
  }
}

.hero-proposal__main .lede {
  margin-top: 28px;
}

.hero-proposal__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-proposal__meta {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025);
}

.meta-list {
  margin: 0;
}

.meta-list__row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.meta-list__row:last-child {
  border-bottom: 0;
}

.meta-list dt {
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  padding-top: 3px;
}

.meta-list dd {
  margin: 0;
  color: var(--cream);
  font-weight: 600;
}

.stat-row {
  display: grid;
  gap: 1px;
  margin-top: clamp(56px, 8vw, 96px);
  background: var(--line);
  border-block: 1px solid var(--line);
}

@media (min-width: 720px) {
  .stat-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.stat {
  display: grid;
  gap: 8px;
  padding: 32px 28px;
  background: var(--ink);
}

@media (min-width: 720px) {
  .stat:first-child {
    padding-left: 0;
  }
}

.stat__num {
  color: var(--gold);
  font-style: italic;
}

.stat__label {
  color: var(--muted);
  font-size: 14px;
  max-width: 28ch;
}

/* --------------------------------------------------------------------------
   02 Pemahaman
   -------------------------------------------------------------------------- */

.understand {
  display: grid;
  gap: 40px;
}

@media (min-width: 1024px) {
  .understand {
    grid-template-columns: 1fr 1fr 1.3fr;
    gap: 56px;
  }
}

.understand__title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 20px;
  margin-bottom: 22px;
}

.understand__idx {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 800;
}

.understand__list {
  margin: 0;
  padding: 0;
  counter-reset: item;
  list-style: none;
}

.understand__list li {
  position: relative;
  padding: 16px 0 16px 36px;
  border-top: 1px solid var(--line);
  color: var(--cream-2);
  font-size: 15px;
  line-height: 1.6;
  counter-increment: item;
}

.understand__list li::before {
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 19px;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--muted);
}

.understand__col--insight {
  padding: 32px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(146, 42, 142, 0.22), rgba(146, 42, 142, 0.04));
  border: 1px solid rgba(192, 79, 187, 0.25);
}

.insight-list li {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.insight-list strong {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 19px;
}

.insight-list span {
  color: var(--cream-2);
  font-size: 14px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   03 Scope
   -------------------------------------------------------------------------- */

.section--scope {
  background: var(--ink-2);
}

.scope-phase + .scope-phase {
  margin-top: clamp(56px, 7vw, 96px);
}

.scope-phase__head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 8px;
}

.scope-phase__head .pill {
  grid-column: 1 / -1;
  justify-self: start;
}

@media (min-width: 720px) {
  .scope-phase__head {
    grid-template-columns: auto 1fr auto;
  }

  .scope-phase__head .pill {
    grid-column: auto;
  }
}

.scope-phase__num {
  color: var(--gold);
  font-style: italic;
}

.scope-table {
  margin: 0;
}

.scope-table__row {
  display: grid;
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s, padding 0.4s var(--ease-out);
}

@media (min-width: 840px) {
  .scope-table__row {
    grid-template-columns: 220px 1fr;
    gap: 40px;
  }

  .scope-table__row:hover {
    padding-left: 12px;
    background: linear-gradient(90deg, rgba(248, 190, 62, 0.06), transparent 60%);
  }
}

.scope-table dt {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--cream);
}

.scope-table dd {
  margin: 0;
  color: var(--cream-2);
  font-size: 15px;
  line-height: 1.65;
}

.scope-table__row--optional dt {
  color: var(--muted);
}

.scope-table__row--optional .pill {
  margin-right: 10px;
  vertical-align: 2px;
}

/* --------------------------------------------------------------------------
   04 Stack
   -------------------------------------------------------------------------- */

.stack {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 900px) {
  .stack {
    grid-template-columns: 1fr 1fr;
  }
}

.stack__layer {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding: 22px 20px 22px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.4s, transform 0.5s var(--ease-out), background 0.4s;
}

@media (min-width: 900px) {
  .stack__layer {
    grid-template-columns: 56px 1fr;
    gap: 18px;
    padding: 26px 28px 26px 22px;
  }
}

.stack__layer:hover {
  border-color: rgba(248, 190, 62, 0.4);
  background: rgba(248, 190, 62, 0.04);
  transform: translateX(6px);
}

.stack__idx {
  font-family: var(--font-display);
  font-size: 28px;
  font-style: italic;
  color: var(--muted);
  line-height: 1;
  padding-top: 4px;
  transition: color 0.3s;
}

.stack__layer:hover .stack__idx {
  color: var(--gold);
}

.stack__name {
  font-size: 22px;
  margin-bottom: 6px;
}

.stack__tech {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold);
  margin-bottom: 8px;
}

.stack__why {
  font-size: 14px;
  color: var(--cream-2);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   05 Timeline
   -------------------------------------------------------------------------- */

.section--timeline {
  background: var(--ink-2);
}

.timeline {
  display: grid;
  gap: 56px;
}

@media (min-width: 1024px) {
  .timeline {
    grid-template-columns: 4fr 6fr;
    gap: 64px;
  }
}

.timeline__phase-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  color: var(--cream-2);
  margin-bottom: 24px;
}

.timeline__list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline__list::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: var(--line-strong);
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  padding: 0 0 36px 30px;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink-2);
  border: 2px solid var(--gold);
  transition: background 0.3s, transform 0.4s var(--ease-out);
}

.timeline__item:hover::before {
  background: var(--gold);
  transform: scale(1.25);
}

.timeline__week {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--gold);
  line-height: 1.2;
}

.timeline__item h4 {
  font-size: 20px;
  margin-bottom: 8px;
}

.timeline__item p {
  font-size: 14px;
  color: var(--cream-2);
  line-height: 1.6;
}

.timeline__deliverable {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.needs {
  margin-top: clamp(48px, 6vw, 80px);
  padding: 36px;
  border-radius: var(--radius);
  border: 1px dashed var(--line-strong);
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .needs {
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }
}

.needs__list {
  display: grid;
  gap: 10px;
}

@media (min-width: 720px) {
  .needs__list {
    grid-template-columns: 1fr 1fr;
  }
}

.needs__list li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--cream-2);
}

.needs__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--purple-glow);
}

/* --------------------------------------------------------------------------
   06 Investasi (editable)
   -------------------------------------------------------------------------- */

.edit-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(248, 190, 62, 0.1);
  border: 1px solid rgba(248, 190, 62, 0.35);
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
}

.edit-hint svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.pricing {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.015);
}

.pricing__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.pricing__status {
  font-size: 13px;
  color: var(--muted);
  transition: color 0.3s;
}

.pricing__status.is-dirty {
  color: var(--gold);
}

.pricing__phase {
  padding: 28px;
  border-bottom: 1px solid var(--line);
}

.pricing__phase-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.pricing__rows {
  display: grid;
}

.pricing__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  align-items: start;
  transition: background 0.3s;
}

@media (min-width: 840px) {
  .pricing__row {
    grid-template-columns: 1.2fr 2fr 180px 32px;
    align-items: center;
  }
}

.pricing__row:hover {
  background: rgba(255, 255, 255, 0.015);
}

.pricing__row--addon {
  grid-template-columns: 28px 1fr;
  grid-template-areas:
    "check name"
    "desc desc"
    "amount amount";
}

.pricing__row--addon .pricing__include { grid-area: check; }
.pricing__row--addon .pricing__name { grid-area: name; }
.pricing__row--addon .pricing__desc { grid-area: desc; }
.pricing__row--addon .pricing__amount-wrap { grid-area: amount; }

.pricing__amount-wrap {
  display: block;
  text-align: right;
}

@media (min-width: 840px) {
  .pricing__row--addon {
    grid-template-columns: 28px 1.2fr 2fr 180px;
    grid-template-areas: "check name desc amount";
  }
}

.pricing__row--addon:not(.is-included) .pricing__name,
.pricing__row--addon:not(.is-included) .pricing__desc,
.pricing__row--addon:not(.is-included) .pricing__amount {
  opacity: 0.5;
}

.pricing__name {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--cream);
}

.pricing__desc {
  font-size: 14px;
  color: var(--cream-2);
  line-height: 1.55;
}

@media (max-width: 839px) {
  .pricing__desc {
    grid-column: 1 / -1;
  }
}

.pricing__amount {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 16px;
  text-align: right;
  white-space: nowrap;
}

.pricing__amount--unit {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-align: right;
}

[contenteditable="true"] {
  position: relative;
  outline: none;
  border-bottom: 1px dotted rgba(248, 190, 62, 0.55);
  padding-bottom: 1px;
  cursor: text;
  transition: background 0.25s, border-color 0.25s;
  border-radius: 3px;
}

[contenteditable="true"]:hover {
  background: rgba(248, 190, 62, 0.07);
}

[contenteditable="true"]:focus {
  background: rgba(248, 190, 62, 0.12);
  border-bottom-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(248, 190, 62, 0.12);
}

[contenteditable="true"]:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
}

.pricing__remove {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
  justify-self: end;
}

.pricing__remove:hover {
  color: var(--red);
  border-color: var(--red);
  background: rgba(230, 40, 37, 0.08);
}

.pricing__add {
  margin-top: 14px;
}

.pricing__phase-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-strong);
  font-size: 14px;
  color: var(--muted);
}

.pricing__phase-total strong {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 24px);
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.pricing__include {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
  cursor: pointer;
  margin-top: 4px;
}

.pricing__summary {
  display: grid;
  gap: 28px;
  padding: 28px;
  background: linear-gradient(160deg, rgba(146, 42, 142, 0.18), rgba(146, 42, 142, 0.03));
}

@media (min-width: 840px) {
  .pricing__summary {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
}

.pricing__adjust {
  display: grid;
  gap: 16px;
  max-width: 320px;
}

.pricing__field {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.pricing__field input,
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: rgba(15, 11, 18, 0.6);
  color: var(--cream);
  font: inherit;
  font-size: 15px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.pricing__field input:focus,
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(248, 190, 62, 0.12);
}

.pricing__check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.pricing__check input {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
}

.pricing__summary > * {
  min-width: 0;
}

.pricing__totals {
  margin: 0;
}

.pricing__total-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--cream-2);
}

.pricing__total-row[hidden] {
  display: none;
}

.pricing__total-row dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.pricing__total-row--grand {
  border-bottom: 0;
  padding-top: 18px;
  align-items: baseline;
  flex-wrap: wrap;
}

.pricing__total-row--grand dd {
  margin-left: auto;
}

.pricing__total-row--grand dt {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--cream);
  white-space: nowrap;
}

.pricing__total-row--grand dd {
  font-family: var(--font-display);
  font-size: clamp(22px, 6.5vw, 40px);
  color: var(--gold);
  white-space: nowrap;
  transition: transform 0.35s var(--ease-out);
}

.pricing__total-row--grand dd.is-bumped {
  transform: scale(1.06);
}

.pricing__notes {
  display: grid;
  gap: 32px;
  margin-top: 48px;
}

@media (min-width: 900px) {
  .pricing__notes {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.terms {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.terms li {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--cream-2);
}

.terms__pct {
  font-family: var(--font-display);
  font-size: 26px;
  font-style: italic;
  color: var(--gold);
}

.pricing__disclaimer {
  padding: 22px 26px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.025);
  font-size: 14px;
  color: var(--cream-2);
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   07 Syarat
   -------------------------------------------------------------------------- */

.terms-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

@media (min-width: 900px) {
  .terms-list {
    grid-template-columns: 1fr 1fr;
    column-gap: 56px;
  }
}

.terms-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  color: var(--cream-2);
  line-height: 1.6;
}

.terms-list__idx {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--gold);
}

/* --------------------------------------------------------------------------
   08 Penutup
   -------------------------------------------------------------------------- */

.closing {
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.closing__orb {
  width: 620px;
  height: 620px;
  left: 50%;
  bottom: -400px;
  transform: translateX(-50%);
  opacity: 0.4;
}

.closing__inner {
  position: relative;
  display: grid;
  gap: 24px;
  max-width: 760px;
}

.closing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Dialog
   -------------------------------------------------------------------------- */

.dialog {
  width: min(100% - 40px, 480px);
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--ink-2);
  color: var(--cream);
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.8);
}

.dialog::backdrop {
  background: rgba(15, 11, 18, 0.75);
  backdrop-filter: blur(6px);
}

.dialog[open] {
  animation: dialog-in 0.5s var(--ease-out);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
}

.dialog__form {
  display: grid;
  gap: 16px;
  padding: 28px;
}

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

.dialog__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 20px;
  line-height: 1;
  transition: background 0.3s, color 0.3s;
}

.dialog__close:hover {
  background: var(--cream);
  color: var(--ink);
}

.field {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.field textarea {
  resize: vertical;
}

.dialog__foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 6px;
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  :root {
    --ink: #fff;
    --ink-2: #fff;
    --ink-3: #f3f0f3;
    --cream: #15101a;
    --cream-2: #2d2533;
    --muted: #6b5f6c;
    --line: #d9d2d9;
    --line-strong: #b9afb9;
    --gold: #b7840a;
    --purple-glow: #922a8e;
  }

  @page {
    margin: 18mm 16mm;
  }

  body {
    font-size: 11.5pt;
    background: #fff;
  }

  body::after,
  .site-header,
  .mobile-menu,
  .cursor-glow,
  .toast,
  .orb,
  .btn,
  .pricing__toolbar,
  .pricing__remove,
  .pricing__add,
  .edit-hint,
  .dialog,
  .closing__actions,
  .link-plain {
    display: none;
  }

  .page-proposal main {
    padding-top: 0;
  }

  .section {
    padding-block: 28px;
  }

  #scope,
  #stack,
  #timeline,
  #investasi,
  #syarat {
    page-break-before: always;
  }

  .reveal,
  .lines-reveal .line > span {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .display-xl {
    font-size: 40pt;
  }

  .display-lg {
    font-size: 26pt;
  }

  .stat {
    background: #fff;
  }

  .understand__col--insight,
  .pricing__summary {
    background: #f6f1f6;
  }

  .pricing,
  .hero-proposal__meta,
  .needs,
  .stack__layer {
    break-inside: avoid;
  }

  .pricing__row,
  .timeline__item,
  .scope-table__row {
    break-inside: avoid;
  }

  [contenteditable="true"] {
    border-bottom: 0;
    background: none;
  }

  .pricing__include {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .site-footer {
    border-top: 1px solid var(--line);
    background: #fff;
  }
}
